|
PcapPlusPlus
19.12
|
Go to the documentation of this file. 1 #ifndef PACKETPP_GTP_LAYER
2 #define PACKETPP_GTP_LAYER
23 #if (BYTE_ORDER == LITTLE_ENDIAN)
216 struct gtpv1_header_extra
218 uint16_t sequenceNumber;
220 uint8_t nextExtensionHeader;
223 gtpv1_header_extra* getHeaderExtra()
const;
225 void init(
GtpV1MessageType messageType, uint32_t teid,
bool setSeqNum, uint16_t seqNum,
bool setNpduNum, uint8_t npduNum);
242 GtpExtension(uint8_t* data,
size_t dataLen, uint8_t type);
244 void setNextHeaderType(uint8_t nextHeaderType);
246 static GtpExtension createGtpExtension(uint8_t* data,
size_t dataLen, uint8_t extType, uint16_t content);
342 static bool isGTPv1(
const uint8_t* data,
size_t dataSize);
402 GtpExtension
addExtension(uint8_t extensionType, uint16_t extensionContent);
452 #endif //PACKETPP_GTP_LAYER
static bool isGTPv1(const uint8_t *data, size_t dataSize)
Definition: GtpLayer.h:191
Definition: GtpLayer.h:145
Definition: GtpLayer.h:91
OsiModelLayer
Definition: ProtocolType.h:224
bool getNpduNumber(uint8_t &npduNum) const
Definition: GtpLayer.h:97
Definition: GtpLayer.h:135
Definition: GtpLayer.h:89
Definition: GtpLayer.h:153
Definition: GtpLayer.h:79
Definition: GtpLayer.h:73
Definition: GtpLayer.h:69
Definition: GtpLayer.h:197
Definition: GtpLayer.h:149
GtpV1MessageType getMessageType() const
std::string getMessageTypeAsString() const
Definition: GtpLayer.h:111
Definition: GtpLayer.h:93
Definition: GtpLayer.h:137
Definition: GtpLayer.h:117
Definition: GtpLayer.h:141
Definition: GtpLayer.h:201
Definition: GtpLayer.h:193
Definition: GtpLayer.h:159
Definition: GtpLayer.h:183
Definition: GtpLayer.h:155
GtpExtension & operator=(const GtpExtension &other)
Definition: GtpLayer.h:127
Definition: GtpLayer.h:165
Definition: GtpLayer.h:199
GtpExtension addExtension(uint8_t extensionType, uint16_t extensionContent)
Definition: GtpLayer.h:105
Definition: GtpLayer.h:167
Definition: GtpLayer.h:175
Definition: GtpLayer.h:85
size_t getContentLength() const
Definition: GtpLayer.h:203
uint8_t getExtensionType() const
Definition: GtpLayer.h:75
Definition: GtpLayer.h:81
Definition: GtpLayer.h:173
Definition: GtpLayer.h:99
Definition: GtpLayer.h:187
Definition: GtpLayer.h:163
GtpV1Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: GtpLayer.h:316
bool setSequenceNumber(const uint16_t seqNumber)
Definition: GtpLayer.h:123
Definition: GtpLayer.h:189
Definition: GtpLayer.h:205
bool getNextExtensionHeaderType(uint8_t &nextExtType) const
GtpV1MessageType
Definition: GtpLayer.h:66
Definition: GtpLayer.h:115
Definition: GtpLayer.h:103
size_t getHeaderLen() const
OsiModelLayer getOsiModelLayer() const
Definition: GtpLayer.h:448
Definition: GtpLayer.h:147
Definition: GtpLayer.h:151
Definition: GtpLayer.h:109
Definition: GtpLayer.h:181
uint8_t getNextExtensionHeaderType() const
bool setNpduNumber(const uint8_t npduNum)
Definition: GtpLayer.h:169
Definition: GtpLayer.h:119
Definition: GtpLayer.h:139
size_t getTotalLength() const
Definition: GtpLayer.h:157
Definition: ProtocolType.h:233
Definition: GtpLayer.h:171
Definition: GtpLayer.h:213
Definition: GtpLayer.h:77
Definition: GtpLayer.h:195
Definition: GtpLayer.h:185
Definition: GtpLayer.h:87
GtpExtension getNextExtension() const
The main namespace for the PcapPlusPlus lib.
Definition: GtpLayer.h:107
bool isGTPUMessage() const
Definition: GtpLayer.h:179
Definition: GtpLayer.h:101
Definition: GtpLayer.h:95
std::string toString() const
Definition: GtpLayer.h:129
GtpExtension getNextExtension() const
Definition: GtpLayer.h:83
Definition: GtpLayer.h:161
Definition: GtpLayer.h:177
bool isGTPCMessage() const
bool getSequenceNumber(uint16_t &seqNumber) const
void computeCalculateFields()
uint8_t * getContent() const
Definition: GtpLayer.h:113
Definition: GtpLayer.h:125
gtpv1_header * getHeader() const
Definition: GtpLayer.h:347
Definition: GtpLayer.h:131
Definition: GtpLayer.h:143
Definition: GtpLayer.h:121
Definition: GtpLayer.h:233
Definition: GtpLayer.h:133
Definition: GtpLayer.h:71
Definition: ProtocolType.h:211