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"; }
Definition: ProtocolType.h:111
bool setSequenceNumber(uint32_t seqNumber)
bool getOffset(uint16_t &offset)
Definition: GreLayer.h:371
bool unsetAcknowledgmentNum()
Definition: GreLayer.h:108
uint16_t protocol
Definition: GreLayer.h:99
Definition: GreLayer.h:21
Definition: ProtocolType.h:126
OsiModelLayer getOsiModelLayer()
Definition: GreLayer.h:161
uint8_t ackSequenceNumBit
Definition: GreLayer.h:52
Definition: GreLayer.h:298
Definition: ProtocolType.h:116
uint16_t protocol
Definition: GreLayer.h:67
Definition: GreLayer.h:92
The main namespace for the PcapPlusPlus lib.
uint8_t checksumBit
Definition: GreLayer.h:25
void computeCalculateFields()
bool setChecksum(uint16_t checksum)
GREv1Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:308
static ProtocolType getGREVersion(uint8_t *greData, size_t greDataLen)
uint16_t callID
Definition: GreLayer.h:82
OsiModelLayer
Definition: ProtocolType.h:208
void computeCalculateFields()
ppp_pptp_header * getPPP_PPTPHeader()
Definition: GreLayer.h:396
PPP_PPTPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:381
uint8_t recursionControl
Definition: GreLayer.h:25
size_t getHeaderLen()
Definition: GreLayer.h:409
void computeCalculateFields()
bool getChecksum(uint16_t &checksum)
bool getAcknowledgmentNum(uint32_t &ackNum)
bool unsetSequenceNumber()
uint8_t sequenceNumBit
Definition: GreLayer.h:25
uint8_t keyBit
Definition: GreLayer.h:25
uint8_t control
Definition: GreLayer.h:97
uint8_t address
Definition: GreLayer.h:95
uint8_t version
Definition: GreLayer.h:52
bool setKey(uint32_t key)
bool getKey(uint32_t &key)
uint8_t routingBit
Definition: GreLayer.h:25
bool getSequenceNumber(uint32_t &seqNumber)
bool setAcknowledgmentNum(uint32_t ackNum)
ProtocolType
Definition: ProtocolType.h:16
Definition: ProtocolType.h:215
Definition: ProtocolType.h:219
gre1_header * getGreHeader()
Definition: GreLayer.h:326
std::string toString()
Definition: GreLayer.h:417
uint8_t strictSourceRouteBit
Definition: GreLayer.h:25
OsiModelLayer getOsiModelLayer()
Definition: GreLayer.h:419
Definition: GreLayer.h:188
GREv0Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:198
gre_basic_header * getGreHeader()
Definition: GreLayer.h:216
uint8_t flags
Definition: GreLayer.h:52
Definition: GreLayer.h:77
uint16_t payloadLength
Definition: GreLayer.h:80