21 #if (BYTE_ORDER == LITTLE_ENDIAN)
48 #if (BYTE_ORDER == LITTLE_ENDIAN)
164 :
Layer(data, dataLen, prevLayer, packet, protocol)
172 GreChecksumOrRouting = 0,
178 uint8_t* getFieldValue(GreField field,
bool returnOffsetEvenIfFieldMissing)
const;
180 void computeCalculateFieldsInner();
292 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen)
380 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen)
459 return "PPP for PPTP Layer";
Definition: GreLayer.h:190
std::string toString() const
bool getChecksum(uint16_t &checksum)
bool setKey(uint32_t key)
gre_basic_header * getGreHeader() const
Definition: GreLayer.h:219
GREv0Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:198
void computeCalculateFields()
bool getKey(uint32_t &key) const
bool getOffset(uint16_t &offset) const
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: GreLayer.h:292
bool setChecksum(uint16_t checksum)
Definition: GreLayer.h:314
bool setAcknowledgmentNum(uint32_t ackNum)
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: GreLayer.h:380
bool getAcknowledgmentNum(uint32_t &ackNum) const
std::string toString() const
GREv1Layer(uint16_t callID)
void computeCalculateFields()
bool unsetAcknowledgmentNum()
gre1_header * getGreHeader() const
Definition: GreLayer.h:345
GREv1Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:322
Definition: GreLayer.h:105
OsiModelLayer getOsiModelLayer() const
Definition: GreLayer.h:157
bool unsetSequenceNumber()
bool getSequenceNumber(uint32_t &seqNumber) const
size_t getHeaderLen() const
bool setSequenceNumber(uint32_t seqNumber)
static ProtocolType getGREVersion(uint8_t *greData, size_t greDataLen)
Definition: GreLayer.h:403
size_t getHeaderLen() const
Definition: GreLayer.h:446
std::string toString() const
Definition: GreLayer.h:457
PPP_PPTPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:412
ppp_pptp_header * getPPP_PPTPHeader() const
Definition: GreLayer.h:431
OsiModelLayer getOsiModelLayer() const
Definition: GreLayer.h:462
PPP_PPTPLayer(uint8_t address, uint8_t control)
void computeCalculateFields()
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:354
@ OsiModelSesionLayer
Definition: ProtocolType.h:364
@ OsiModelNetworkLayer
Definition: ProtocolType.h:360