PcapPlusPlus  20.08+
pcpp::GtpV1Layer::GtpExtension Class Reference

#include <GtpLayer.h>

Public Member Functions

 GtpExtension ()
 
 GtpExtension (const GtpExtension &other)
 
GtpExtensionoperator= (const GtpExtension &other)
 
bool isNull () const
 
uint8_t getExtensionType () const
 
size_t getTotalLength () const
 
size_t getContentLength () const
 
uint8_t * getContent () const
 
uint8_t getNextExtensionHeaderType () const
 
GtpExtension getNextExtension () const
 

Detailed Description

A class that represents GTP header extensions

Constructor & Destructor Documentation

◆ GtpExtension() [1/2]

pcpp::GtpV1Layer::GtpExtension::GtpExtension ( )

An empty c'tor that creates an empty object, meaning one that isNull() returns "true")

◆ GtpExtension() [2/2]

pcpp::GtpV1Layer::GtpExtension::GtpExtension ( const GtpExtension other)

A copy c'tor for this class

Member Function Documentation

◆ getContent()

uint8_t* pcpp::GtpV1Layer::GtpExtension::getContent ( ) const
Returns
A byte array that includes the extension's content. The length of this array can be determined by getContentLength(). If the object is empty a null value is returned

◆ getContentLength()

size_t pcpp::GtpV1Layer::GtpExtension::getContentLength ( ) const
Returns
The length of the extension's content, excluding the extension length and next extension type fields. If the object is empty a value of zero is returned

◆ getExtensionType()

uint8_t pcpp::GtpV1Layer::GtpExtension::getExtensionType ( ) const
Returns
The extension type. If the object is empty a value of zero is returned

◆ getNextExtension()

GtpExtension pcpp::GtpV1Layer::GtpExtension::getNextExtension ( ) const
Returns
An instance of this class representing the next extension header, if exists in the message. If there are no more header extensions or if this object is empty an empty instance of GtpExtension is returned, meaning one that GtpExtension::isNull() returns "true"

◆ getNextExtensionHeaderType()

uint8_t pcpp::GtpV1Layer::GtpExtension::getNextExtensionHeaderType ( ) const
Returns
The extension type of the next header. If there are no more header extensions or if this object is empty a value of zero is returned

◆ getTotalLength()

size_t pcpp::GtpV1Layer::GtpExtension::getTotalLength ( ) const
Returns
The total length of the extension including the length and next extension type fields. If the object is empty a value of zero is returned

◆ isNull()

bool pcpp::GtpV1Layer::GtpExtension::isNull ( ) const
Returns
Instances of this class may be initialized as empty, meaning they don't contain any data. In these cases this method returns true

◆ operator=()

GtpExtension& pcpp::GtpV1Layer::GtpExtension::operator= ( const GtpExtension other)

An assignment operator for this class