|
PcapPlusPlus
20.08
|
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:233
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
bool getOffset(uint16_t &offset) const
@ OsiModelNetworkLayer
Definition: ProtocolType.h:240
void computeCalculateFields()
Definition: GreLayer.h:298
uint64_t ProtocolType
Definition: ProtocolType.h:18
size_t getHeaderLen() const
bool getChecksum(uint16_t &checksum)
OsiModelLayer getOsiModelLayer() const
Definition: GreLayer.h:419
const ProtocolType GREv0
Definition: ProtocolType.h:113
static ProtocolType getGREVersion(uint8_t *greData, size_t greDataLen)
Definition: GreLayer.h:108
const ProtocolType GREv1
Definition: ProtocolType.h:118
Definition: GreLayer.h:188
const ProtocolType PPP_PPTP
Definition: ProtocolType.h:128
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
@ OsiModelSesionLayer
Definition: ProtocolType.h:244
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