PcapPlusPlus
21.11
|
#include <DhcpV6Layer.h>
Public Member Functions | |
DhcpV6OptionBuilder (DhcpV6OptionType optionType, const std::string &optionValueAsHexStream) | |
DhcpV6OptionBuilder (DhcpV6OptionType optionType, const uint8_t *optionValue, uint8_t optionValueLen) | |
DhcpV6Option | build () const |
A class for building DHCPv6 options. This builder receives the option parameters in its c'tor, builds the DHCPv6 option raw buffer and provides a build() method to get a DhcpV6Option object out of it
|
inline |
A c'tor for building DHCPv6 options from a string representing the hex stream of the raw byte value. The DhcpV6Option object can later be retrieved by calling build()
[in] | optionType | DHCPv6 option type |
[in] | optionValueAsHexStream | The value as a hex stream string |
|
inline |
A c'tor for building DHCPv6 options from a byte array representing their value. The DhcpV6Option object can be later retrieved by calling build()
[in] | optionType | DHCPv6 option type |
[in] | optionValue | A buffer containing the option value. This buffer is read-only and isn't modified in any way. |
[in] | optionValueLen | Option value length in bytes |
DhcpV6Option pcpp::DhcpV6OptionBuilder::build | ( | ) | const |
Build the DhcpV6Option object out of the parameters defined in the c'tor