1 #ifndef PACKETPP_GRE_LAYER 2 #define PACKETPP_GRE_LAYER 23 #if (BYTE_ORDER == LITTLE_ENDIAN) 50 #if (BYTE_ORDER == LITTLE_ENDIAN) 164 GreLayer(uint8_t* data,
size_t dataLen,
Layer* prevLayer,
Packet* packet) :
Layer(data, dataLen, prevLayer, packet) { }
170 GreChecksumOrRouting = 0,
176 uint8_t* getFieldValue(GreField field,
bool returnOffsetEvenIfFieldMissing);
178 void computeCalculateFieldsInner();
260 bool getKey(uint32_t& key);
269 bool setKey(uint32_t key);
417 std::string
toString() {
return "PPP for PPTP Layer"; }
gre_basic_header * getGreHeader()
Definition: GreLayer.h:216
bool setSequenceNumber(uint32_t seqNumber)
gre1_header * getGreHeader()
Definition: GreLayer.h:326
uint8_t ackSequenceNumBit
Definition: GreLayer.h:52
Definition: ProtocolType.h:224
Definition: ProtocolType.h:116
bool setAcknowledgmentNum(uint32_t ackNum)
OsiModelLayer getOsiModelLayer()
Definition: GreLayer.h:419
uint16_t protocol
Definition: GreLayer.h:99
bool getAcknowledgmentNum(uint32_t &ackNum)
bool getSequenceNumber(uint32_t &seqNumber)
uint16_t payloadLength
Definition: GreLayer.h:80
ppp_pptp_header * getPPP_PPTPHeader()
Definition: GreLayer.h:396
uint16_t protocol
Definition: GreLayer.h:67
size_t getHeaderLen()
Definition: GreLayer.h:409
Definition: GreLayer.h:77
bool setChecksum(uint16_t checksum)
uint8_t checksumBit
Definition: GreLayer.h:25
bool setKey(uint32_t key)
bool unsetAcknowledgmentNum()
bool getOffset(uint16_t &offset)
void computeCalculateFields()
bool getChecksum(uint16_t &checksum)
void computeCalculateFields()
Definition: GreLayer.h:108
uint8_t keyBit
Definition: GreLayer.h:25
uint8_t version
Definition: GreLayer.h:52
static ProtocolType getGREVersion(uint8_t *greData, size_t greDataLen)
uint8_t routingBit
Definition: GreLayer.h:25
OsiModelLayer
Definition: ProtocolType.h:213
bool getKey(uint32_t &key)
Definition: ProtocolType.h:220
GREv1Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:308
GREv0Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:198
Definition: GreLayer.h:21
uint8_t sequenceNumBit
Definition: GreLayer.h:25
uint8_t flags
Definition: GreLayer.h:52
OsiModelLayer getOsiModelLayer()
Definition: GreLayer.h:161
ProtocolType
Definition: ProtocolType.h:16
Definition: GreLayer.h:298
uint8_t recursionControl
Definition: GreLayer.h:25
Definition: GreLayer.h:92
void computeCalculateFields()
Definition: ProtocolType.h:111
bool unsetSequenceNumber()
uint8_t control
Definition: GreLayer.h:97
Definition: GreLayer.h:188
Definition: ProtocolType.h:126
uint8_t address
Definition: GreLayer.h:95
uint8_t strictSourceRouteBit
Definition: GreLayer.h:25
PPP_PPTPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:381
uint16_t callID
Definition: GreLayer.h:82
The main namespace for the PcapPlusPlus lib.
Definition: GreLayer.h:371
std::string toString()
Definition: GreLayer.h:417