PcapPlusPlus
|
#include <IPv6Extensions.h>
Public Member Functions | |
template<typename T > | |
T | getValueAs () |
size_t | getTotalSize () const |
size_t | getDataSize () |
Public Attributes | |
uint8_t | optionType |
uint8_t | optionLen |
uint8_t | optionData [] |
A struct representing a Type-Length-Value (TLV) option. These type of options are used inside Hop-By-Hop and Destinations IPv6 extensions
|
inline |
|
inline |
|
inline |
A templated method to retrieve the option data as a certain type T. For example, if option data is 4B long (integer) then this method should be used as getValueAs<int>() and it will return the option data as an integer.
Notice this return value is a copy of the data, not a pointer to the actual data
uint8_t pcpp::IPv6TLVOptionHeader::TLVOption::optionData[] |
Option data (variable size)
uint8_t pcpp::IPv6TLVOptionHeader::TLVOption::optionLen |
Option length in bytes, not including TLVOption::optionType field and this field
uint8_t pcpp::IPv6TLVOptionHeader::TLVOption::optionType |
Option type