PcapPlusPlus
21.11
|
#include <PPPoELayer.h>
Public Member Functions | |
PPPoETag (uint8_t *tagRawData) | |
virtual | ~PPPoETag () |
PPPoEDiscoveryLayer::PPPoETagTypes | getType () const |
std::string | getValueAsString () const |
size_t | getTotalSize () const |
size_t | getDataSize () const |
Public Member Functions inherited from pcpp::TLVRecord< uint16_t, uint16_t > | |
TLVRecord (uint8_t *recordRawData) | |
TLVRecord (const TLVRecord &other) | |
virtual | ~TLVRecord () |
void | assign (uint8_t *recordRawData) |
TLVRecord & | operator= (const TLVRecord &other) |
bool | operator== (const TLVRecord &rhs) const |
bool | operator!= (const TLVRecord &rhs) const |
uint16_t | getType () const |
uint8_t * | getValue () const |
bool | isNull () const |
bool | isNotNull () const |
uint8_t * | getRecordBasePtr () const |
void | purgeRecordData () |
T | getValueAs (size_t offset=0) const |
bool | setValue (T newValue, int valueOffset=0) |
Represents a PPPoE tag and its data
|
inline |
A c'tor that gets a pointer to the tag raw data (byte array)
[in] | tagRawData | A pointer to the tag raw data |
|
inlinevirtual |
A d'tor for this class, currently does nothing
|
virtual |
Implements pcpp::TLVRecord< uint16_t, uint16_t >.
|
virtual |
Implements pcpp::TLVRecord< uint16_t, uint16_t >.
PPPoEDiscoveryLayer::PPPoETagTypes pcpp::PPPoEDiscoveryLayer::PPPoETag::getType | ( | ) | const |
|
inline |
Retrieve the tag data as string. Relevant only if the tag value is indeed a string