PcapPlusPlus
21.05
|
#include <IPv4Layer.h>
Public Member Functions | |
IPv4OptionBuilder (IPv4OptionTypes optionType, const uint8_t *optionValue, uint8_t optionValueLen) | |
IPv4OptionBuilder (IPv4OptionTypes optionType, uint16_t optionValue) | |
IPv4OptionBuilder (IPv4OptionTypes optionType, const std::vector< IPv4Address > &ipList) | |
IPv4OptionBuilder (const IPv4TimestampOptionValue ×tampValue) | |
IPv4Option | build () const |
A class for building IPv4 option records. This builder receives the IPv4 option parameters in its c'tor, builds the IPv4 option raw buffer and provides a build() method to get a IPv4Option object out of it
|
inline |
A c'tor for building IPv4 options which their value is a byte array. The IPv4Option object can be later retrieved by calling build()
[in] | optionType | IPv4 option type |
[in] | optionValue | A buffer containing the option value. This buffer is read-only and isn't modified in any way. For option types IPV4OPT_NOP and IPV4OPT_EndOfOptionsList this parameter is ignored (expected to be NULL) as these option types don't contain any data |
[in] | optionValueLen | Option value length in bytes |
|
inline |
A c'tor for building IPv4 options which have a 2-byte value. The IPv4Option object can be later retrieved by calling build()
[in] | optionType | IPv4 option type |
[in] | optionValue | A 2-byte option value |
pcpp::IPv4OptionBuilder::IPv4OptionBuilder | ( | IPv4OptionTypes | optionType, |
const std::vector< IPv4Address > & | ipList | ||
) |
A c'tor for building IPv4 options which their value is a list of IPv4 addresses, for example: IPV4OPT_RecordRoute, IPV4OPT_StrictSourceRoute, IPV4OPT_LooseSourceRoute. The IPv4Option object can be later retrieved by calling build()
[in] | optionType | IPv4 option type |
[in] | ipList | A vector of IPv4 addresses that will be used as the option value |
pcpp::IPv4OptionBuilder::IPv4OptionBuilder | ( | const IPv4TimestampOptionValue & | timestampValue | ) |
A c'tor for building IPv4 timestamp option (IPV4OPT_Timestamp). The IPv4Option object can be later retrieved by calling build()
[in] | timestampValue | The timestamp value to build the IPv4 option with |
IPv4Option pcpp::IPv4OptionBuilder::build | ( | ) | const |
Build the IPv4Option object out of the parameters defined in the c'tor