21 #if (BYTE_ORDER == LITTLE_ENDIAN)
48 #if (BYTE_ORDER == LITTLE_ENDIAN)
163 :
Layer(data, dataLen, prevLayer, packet, protocol)
171 GreChecksumOrRouting = 0,
177 uint8_t* getFieldValue(GreField field,
bool returnOffsetEvenIfFieldMissing)
const;
179 void computeCalculateFieldsInner();
290 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen)
377 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen)
455 return "PPP for PPTP Layer";
Definition: GreLayer.h:189
std::string toString() const override
bool getChecksum(uint16_t &checksum)
bool setKey(uint32_t key)
gre_basic_header * getGreHeader() const
Definition: GreLayer.h:217
GREv0Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:197
bool getKey(uint32_t &key) const
bool getOffset(uint16_t &offset) const
void computeCalculateFields() override
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: GreLayer.h:290
bool setChecksum(uint16_t checksum)
Definition: GreLayer.h:312
bool setAcknowledgmentNum(uint32_t ackNum)
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: GreLayer.h:377
bool getAcknowledgmentNum(uint32_t &ackNum) const
GREv1Layer(uint16_t callID)
void computeCalculateFields() override
bool unsetAcknowledgmentNum()
std::string toString() const override
gre1_header * getGreHeader() const
Definition: GreLayer.h:342
GREv1Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:320
Definition: GreLayer.h:105
bool unsetSequenceNumber()
bool getSequenceNumber(uint32_t &seqNumber) const
void parseNextLayer() override
OsiModelLayer getOsiModelLayer() const override
Definition: GreLayer.h:156
bool setSequenceNumber(uint32_t seqNumber)
static ProtocolType getGREVersion(uint8_t *greData, size_t greDataLen)
size_t getHeaderLen() const override
Definition: GreLayer.h:400
size_t getHeaderLen() const override
Definition: GreLayer.h:442
void computeCalculateFields() override
PPP_PPTPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:409
ppp_pptp_header * getPPP_PPTPHeader() const
Definition: GreLayer.h:427
OsiModelLayer getOsiModelLayer() const override
Definition: GreLayer.h:458
std::string toString() const override
Definition: GreLayer.h:453
PPP_PPTPLayer(uint8_t address, uint8_t control)
void parseNextLayer() override
The main namespace for the PcapPlusPlus lib.
uint8_t ProtocolType
Definition: ProtocolType.h:17
const ProtocolType GREv0
Definition: ProtocolType.h:118
const ProtocolType PPP_PPTP
Definition: ProtocolType.h:133
const ProtocolType GREv1
Definition: ProtocolType.h:123
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelSesionLayer
Definition: ProtocolType.h:374
@ OsiModelNetworkLayer
Definition: ProtocolType.h:370