PcapPlusPlus  Next
pcpp::gtpv1_header Struct Reference

#include <GtpLayer.h>

Public Attributes

uint8_t npduNumberFlag: 1
 A 1-bit value that states whether there is a N-PDU number optional field.
 
uint8_t sequenceNumberFlag: 1
 A 1-bit value that states whether there is a Sequence Number optional field.
 
uint8_t extensionHeaderFlag: 1
 A 1-bit value that states whether there is an extension header optional field.
 
uint8_t reserved: 1
 Reserved bit.
 
uint8_t protocolType: 1
 A 1-bit value that differentiates GTP (value 1) from GTP' (value 0)
 
uint8_t version: 3
 GTP version.
 
uint8_t messageType
 An 8-bit field that indicates the type of GTP message.
 
uint16_t messageLength
 
uint32_t teid
 

Detailed Description

GTP v1 common message header

Member Data Documentation

◆ messageLength

uint16_t pcpp::gtpv1_header::messageLength

A 16-bit field that indicates the length of the payload in bytes (rest of the packet following the mandatory 8-byte GTP header). Includes the optional fields

◆ teid

uint32_t pcpp::gtpv1_header::teid

Tunnel endpoint identifier - A 32-bit(4-octet) field used to multiplex different connections in the same GTP tunnel