PcapPlusPlus
|
#include <IPv6Extensions.h>
Public Member Functions | |
TLVOptionBuilder (uint8_t optType, uint8_t optDataLen, const uint8_t *optValue) | |
TLVOptionBuilder (uint8_t optType, uint8_t optValue) | |
TLVOptionBuilder (uint8_t optType, uint16_t optValue) | |
TLVOptionBuilder (const TLVOptionBuilder &other) | |
~TLVOptionBuilder () | |
TLVOption * | build () const |
uint8_t * | getRawBuffer () const |
A class for building Type-Length-Value (TLV) options of type TLVOption. This builder gets the option parameters in its c'tor, builds the option raw buffer and provides a method to build a TLVOption object out of it
pcpp::IPv6TLVOptionHeader::TLVOptionBuilder::TLVOptionBuilder | ( | uint8_t | optType, |
uint8_t | optDataLen, | ||
const uint8_t * | optValue | ||
) |
A c'tor which gets the option type, option length and a buffer containing the option value and builds the option raw buffer which can later be casted to TLVOption object using the build() method
[in] | optType | Option type |
[in] | optDataLen | Option length in bytes |
[in] | optValue | A buffer containing the option data. This buffer is read-only and isn't modified in any way |
pcpp::IPv6TLVOptionHeader::TLVOptionBuilder::TLVOptionBuilder | ( | uint8_t | optType, |
uint8_t | optValue | ||
) |
pcpp::IPv6TLVOptionHeader::TLVOptionBuilder::TLVOptionBuilder | ( | uint8_t | optType, |
uint16_t | optValue | ||
) |
pcpp::IPv6TLVOptionHeader::TLVOptionBuilder::TLVOptionBuilder | ( | const TLVOptionBuilder & | other | ) |
A copy c'tor which copies all the data from another instance of TLVOptionBuilder
[in] | other | The instance to copy from |
|
inline |
A d'tor for this class, frees all allocated memory
|
inline |
|
inline |