|
PcapPlusPlus
19.12
|
Go to the documentation of this file. 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)
const;
178 void computeCalculateFieldsInner();
260 bool getKey(uint32_t& key)
const;
269 bool setKey(uint32_t key);
417 std::string
toString()
const {
return "PPP for PPTP Layer"; }
OsiModelLayer
Definition: ProtocolType.h:224
Definition: ProtocolType.h:116
ppp_pptp_header * getPPP_PPTPHeader() const
Definition: GreLayer.h:396
bool setSequenceNumber(uint32_t seqNumber)
bool setAcknowledgmentNum(uint32_t ackNum)
void computeCalculateFields()
size_t getHeaderLen() const
Definition: GreLayer.h:409
Definition: ProtocolType.h:126
bool getOffset(uint16_t &offset) const
Definition: ProtocolType.h:231
void computeCalculateFields()
Definition: GreLayer.h:298
ProtocolType
Definition: ProtocolType.h:16
size_t getHeaderLen() const
bool getChecksum(uint16_t &checksum)
OsiModelLayer getOsiModelLayer() const
Definition: GreLayer.h:419
Definition: ProtocolType.h:111
static ProtocolType getGREVersion(uint8_t *greData, size_t greDataLen)
Definition: GreLayer.h:108
Definition: GreLayer.h:188
bool unsetSequenceNumber()
bool getKey(uint32_t &key) const
GREv1Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:308
The main namespace for the PcapPlusPlus lib.
std::string toString() const
Definition: GreLayer.h:417
bool setChecksum(uint16_t checksum)
PPP_PPTPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:381
Definition: ProtocolType.h:235
GREv0Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GreLayer.h:198
gre1_header * getGreHeader() const
Definition: GreLayer.h:326
bool setKey(uint32_t key)
Definition: GreLayer.h:371
std::string toString() const
bool getSequenceNumber(uint32_t &seqNumber) const
std::string toString() const
OsiModelLayer getOsiModelLayer() const
Definition: GreLayer.h:161
bool unsetAcknowledgmentNum()
gre_basic_header * getGreHeader() const
Definition: GreLayer.h:216
void computeCalculateFields()
bool getAcknowledgmentNum(uint32_t &ackNum) const