PcapPlusPlus
|
#include <IPv6Extensions.h>
Public Member Functions | |
IPv6TLVOptionBuilder (uint8_t optType, const uint8_t *optValue, uint8_t optValueLen) | |
IPv6TLVOptionBuilder (uint8_t optType, uint8_t optValue) | |
IPv6TLVOptionBuilder (uint8_t optType, uint16_t optValue) | |
IPv6TLVOptionBuilder (const IPv6TLVOptionBuilder &other) | |
IPv6Option | build () const |
A class for building IPv6 Type-Length-Value (TLV) options. This builder receives the option parameters in its c'tor, builds the option raw buffer and provides a method to build a IPv6Option object out of it
|
inline |
A c'tor for building IPv6 TLV options which their value is a byte array. The IPv6Option object can later be retrieved by calling build()
[in] | optType | IPv6 option type |
[in] | optValue | A buffer containing the option value. This buffer is read-only and isn't modified in any way |
[in] | optValueLen | Option value length in bytes |
|
inline |
A c'tor for building IPv6 TLV options which have a 1-byte value. The IPv6Option object can later be retrieved by calling build()
[in] | optType | IPv6 option type |
[in] | optValue | A 1-byte option value |
|
inline |
A c'tor for building IPv6 TLV options which have a 2-byte value. The IPv6Option object can later be retrieved by calling build()
[in] | optType | IPv6 option type |
[in] | optValue | A 2-byte option value |
|
inline |
A copy c'tor that creates an instance of this class out of another instance and copies all the data from it
[in] | other | The instance to copy data from |
IPv6Option pcpp::IPv6TLVOptionHeader::IPv6TLVOptionBuilder::build | ( | ) | const |
Build the IPv6Option object out of the parameters defined in the c'tor