PcapPlusPlus
23.09
|
#include <DhcpLayer.h>
Public Member Functions | |
DhcpOptionBuilder (DhcpOptionTypes optionType, const uint8_t *optionValue, uint8_t optionValueLen) | |
DhcpOptionBuilder (DhcpOptionTypes optionType, uint8_t optionValue) | |
DhcpOptionBuilder (DhcpOptionTypes optionType, uint16_t optionValue) | |
DhcpOptionBuilder (DhcpOptionTypes optionType, uint32_t optionValue) | |
DhcpOptionBuilder (DhcpOptionTypes optionType, const IPv4Address &optionValue) | |
DhcpOptionBuilder (DhcpOptionTypes optionType, const std::string &optionValue) | |
DhcpOptionBuilder (const DhcpOptionBuilder &other) | |
DhcpOptionBuilder & | operator= (const DhcpOptionBuilder &other) |
DhcpOption | build () const |
A class for building DHCP options. This builder receives the option parameters in its c'tor, builds the DHCP option raw buffer and provides a build() method to get a DhcpOption object out of it
|
inline |
A c'tor for building DHCP options which their value is a byte array. The DhcpOption object can later be retrieved by calling build()
[in] | optionType | DHCP option type |
[in] | optionValue | A buffer containing the option value. This buffer is read-only and isn't modified in any way |
[in] | optionValueLen | DHCP option value length in bytes |
|
inline |
A c'tor for building DHCP options which have a 1-byte value. The DhcpOption object can later be retrieved by calling build()
[in] | optionType | DHCP option type |
[in] | optionValue | A 1-byte option value |
|
inline |
A c'tor for building DHCP options which have a 2-byte value. The DhcpOption object can later be retrieved by calling build()
[in] | optionType | DHCP option type |
[in] | optionValue | A 2-byte option value |
|
inline |
A c'tor for building DHCP options which have a 4-byte value. The DhcpOption object can later be retrieved by calling build()
[in] | optionType | DHCP option type |
[in] | optionValue | A 4-byte option value |
|
inline |
A c'tor for building DHCP options which have an IPv4Address value. The DhcpOption object can later be retrieved by calling build()
[in] | optionType | DHCP option type |
[in] | optionValue | The IPv4 address option value |
|
inline |
A c'tor for building DHCP options which have a string value. The DhcpOption object can later be retrieved by calling build()
[in] | optionType | DHCP option type |
[in] | optionValue | The string option value |
|
inline |
A copy c'tor which copies all the data from another instance of DhcpOptionBuilder
[in] | other | The instance to copy from |
DhcpOption pcpp::DhcpOptionBuilder::build | ( | ) | const |
Build the DhcpOption object out of the parameters defined in the c'tor
|
inline |
Assignment operator that copies all data from another instance of DhcpOptionBuilder
[in] | other | The instance to assign from |