Kea
1.9.9-git
|
Option with defined data fields represented as buffers that can be accessed using data field index. More...
#include <option_custom.h>
Public Member Functions | |
OptionCustom (const OptionDefinition &def, Universe u) | |
Constructor, used for options to be sent. More... | |
OptionCustom (const OptionDefinition &def, Universe u, const OptionBuffer &data) | |
Constructor, used for options to be sent. More... | |
OptionCustom (const OptionDefinition &def, Universe u, OptionBufferConstIter first, OptionBufferConstIter last) | |
Constructor, used for received options. More... | |
void | addArrayDataField (const asiolink::IOAddress &address) |
Create new buffer and set its value as an IP address. More... | |
void | addArrayDataField (const bool value) |
Create new buffer and store boolean value in it. More... | |
template<typename T > | |
void | addArrayDataField (const T value) |
Create new buffer and store integer value in it. More... | |
void | addArrayDataField (const std::string &value) |
Create new buffer and store tuple value in it. More... | |
void | addArrayDataField (const OpaqueDataTuple &value) |
Create new buffer and store tuple value in it. More... | |
void | addArrayDataField (const PrefixLen &prefix_len, const asiolink::IOAddress &prefix) |
Create new buffer and store variable length prefix in it. More... | |
void | addArrayDataField (const PSIDLen &psid_len, const PSID &psid) |
Create new buffer and store PSID length / value in it. More... | |
virtual OptionPtr | clone () const |
Copies this option and returns a pointer to the copy. More... | |
uint32_t | getDataFieldsNum () const |
Return a number of the data fields. More... | |
void | initialize (const OptionBufferConstIter first, const OptionBufferConstIter last) |
Sets content of this option from buffer. More... | |
virtual uint16_t | len () const |
Returns length of the complete option (data length + DHCPv4/DHCPv6 option header) More... | |
virtual void | pack (isc::util::OutputBuffer &buf) const |
Writes DHCP option in a wire format to a buffer. More... | |
asiolink::IOAddress | readAddress (const uint32_t index=0) const |
Read a buffer as IP address. More... | |
const OptionBuffer & | readBinary (const uint32_t index=0) const |
Read a buffer as binary data. More... | |
bool | readBoolean (const uint32_t index=0) const |
Read a buffer as boolean value. More... | |
std::string | readFqdn (const uint32_t index=0) const |
Read a buffer as FQDN. More... | |
template<typename T > | |
T | readInteger (const uint32_t index=0) const |
Read a buffer as integer value. More... | |
PrefixTuple | readPrefix (const uint32_t index=0) const |
Read a buffer as variable length prefix. More... | |
PSIDTuple | readPsid (const uint32_t index=0) const |
Read a buffer as a PSID length / value tuple. More... | |
std::string | readString (const uint32_t index=0) const |
Read a buffer as string value. More... | |
std::string | readTuple (const uint32_t index=0) const |
Read a buffer as length and string tuple. More... | |
void | readTuple (OpaqueDataTuple &tuple, const uint32_t index=0) const |
Read a buffer into a length and string tuple. More... | |
virtual std::string | toText (int indent=0) const |
Returns string representation of the option. More... | |
virtual void | unpack (OptionBufferConstIter begin, OptionBufferConstIter end) |
Parses received buffer. More... | |
void | writeAddress (const asiolink::IOAddress &address, const uint32_t index=0) |
Write an IP address into a buffer. More... | |
void | writeBinary (const OptionBuffer &buf, const uint32_t index=0) |
Write binary data into a buffer. More... | |
void | writeBoolean (const bool value, const uint32_t index=0) |
Write a boolean value into a buffer. More... | |
void | writeFqdn (const std::string &fqdn, const uint32_t index=0) |
Write an FQDN into a buffer. More... | |
template<typename T > | |
void | writeInteger (const T value, const uint32_t index=0) |
Write an integer value into a buffer. More... | |
void | writePrefix (const PrefixLen &prefix_len, const asiolink::IOAddress &prefix, const uint32_t index=0) |
Write prefix length and value into a buffer. More... | |
void | writePsid (const PSIDLen &psid_len, const PSID &psid, const uint32_t index=0) |
Write PSID length / value into a buffer. More... | |
void | writeString (const std::string &text, const uint32_t index=0) |
Write a string value into a buffer. More... | |
void | writeTuple (const std::string &value, const uint32_t index=0) |
Write a length and string tuple into a buffer. More... | |
void | writeTuple (const OpaqueDataTuple &value, const uint32_t index=0) |
Write a length and string tuple into a buffer. More... | |
Public Member Functions inherited from isc::dhcp::Option | |
Option (Universe u, uint16_t type) | |
ctor, used for options constructed, usually during transmission More... | |
Option (Universe u, uint16_t type, const OptionBuffer &data) | |
Constructor, used for received options. More... | |
Option (Universe u, uint16_t type, OptionBufferConstIter first, OptionBufferConstIter last) | |
Constructor, used for received options. More... | |
Option (const Option &source) | |
Copy constructor. More... | |
virtual | ~Option () |
just to force that every option has virtual dtor More... | |
void | addOption (OptionPtr opt) |
Adds a sub-option. More... | |
bool | delOption (uint16_t type) |
Attempts to delete first suboption of requested type. More... | |
bool | equals (const OptionPtr &other) const |
Checks if options are equal. More... | |
virtual bool | equals (const Option &other) const |
Checks if two options are equal. More... | |
virtual const OptionBuffer & | getData () const |
Returns pointer to actual data. More... | |
std::string | getEncapsulatedSpace () const |
Returns the name of the option space encapsulated by this option. More... | |
virtual uint16_t | getHeaderLen () const |
Returns length of header (2 for v4, 4 for v6) More... | |
OptionPtr | getOption (uint16_t type) const |
Returns shared_ptr to suboption of specific type. More... | |
const OptionCollection & | getOptions () const |
Returns all encapsulated options. More... | |
void | getOptionsCopy (OptionCollection &options_copy) const |
Performs deep copy of suboptions. More... | |
uint16_t | getType () const |
Returns option type (0-255 for DHCPv4, 0-65535 for DHCPv6) More... | |
uint16_t | getUint16 () const |
Returns content of first word. More... | |
uint32_t | getUint32 () const |
Returns content of first double word. More... | |
uint8_t | getUint8 () const |
Returns content of first byte. More... | |
Universe | getUniverse () const |
returns option universe (V4 or V6) More... | |
Option & | operator= (const Option &rhs) |
Assignment operator. More... | |
template<typename InputIterator > | |
void | setData (InputIterator first, InputIterator last) |
Sets content of this option from buffer. More... | |
void | setEncapsulatedSpace (const std::string &encapsulated_space) |
Sets the name of the option space encapsulated by this option. More... | |
void | setUint16 (uint16_t value) |
Sets content of this option to a single uint16 value. More... | |
void | setUint32 (uint32_t value) |
Sets content of this option to a single uint32 value. More... | |
void | setUint8 (uint8_t value) |
Sets content of this option to a single uint8 value. More... | |
virtual std::vector< uint8_t > | toBinary (const bool include_header=false) const |
Returns binary representation of the option. More... | |
virtual std::string | toHexString (const bool include_header=false) const |
Returns string containing hexadecimal representation of option. More... | |
virtual std::string | toString () const |
Returns string representation of the value. More... | |
virtual bool | valid () const |
returns if option is valid (e.g. More... | |
Additional Inherited Members | |
Public Types inherited from isc::dhcp::Option | |
typedef OptionPtr | Factory(Option::Universe u, uint16_t type, const OptionBuffer &buf) |
a factory function prototype More... | |
enum | Universe { V4, V6 } |
defines option universe DHCPv4 or DHCPv6 More... | |
Static Public Member Functions inherited from isc::dhcp::Option | |
static OptionPtr | create (Universe u, uint16_t type) |
Factory function creating an instance of the Option . More... | |
static OptionPtr | create (Universe u, uint16_t type, const OptionBuffer &data) |
Factory function creating an instance of the Option . More... | |
static OptionPtr | factory (Option::Universe u, uint16_t type, const OptionBuffer &buf) |
Factory function to create instance of option. More... | |
static OptionPtr | factory (Option::Universe u, uint16_t type) |
Factory function to create instance of option. More... | |
Static Public Attributes inherited from isc::dhcp::Option | |
static bool | lenient_parsing_ |
Governs whether options should be parsed less strictly. More... | |
static const size_t | OPTION4_HDR_LEN = 2 |
length of the usual DHCPv4 option header (there are exceptions) More... | |
static const size_t | OPTION6_HDR_LEN = 4 |
length of any DHCPv6 option header More... | |
Protected Member Functions inherited from isc::dhcp::Option | |
void | check () const |
A protected method used for option correctness. More... | |
template<typename OptionType > | |
OptionPtr | cloneInternal () const |
Copies this option and returns a pointer to the copy. More... | |
std::string | headerToText (const int indent=0, const std::string &type_name="") const |
Returns option header in the textual format. More... | |
void | packHeader (isc::util::OutputBuffer &buf) const |
Store option's header in a buffer. More... | |
void | packOptions (isc::util::OutputBuffer &buf) const |
Store sub options in a buffer. More... | |
std::string | suboptionsToText (const int indent=0) const |
Returns collection of suboptions in the textual format. More... | |
void | unpackOptions (const OptionBuffer &buf) |
Builds a collection of sub options from the buffer. More... | |
Protected Attributes inherited from isc::dhcp::Option | |
OptionBuffer | data_ |
contains content of this data More... | |
std::string | encapsulated_space_ |
Name of the option space being encapsulated by this option. More... | |
OptionCollection | options_ |
collection for storing suboptions More... | |
uint16_t | type_ |
option type (0-255 for DHCPv4, 0-65535 for DHCPv6) More... | |
Universe | universe_ |
option universe (V4 or V6) More... | |
Option with defined data fields represented as buffers that can be accessed using data field index.
This class represents an option which has defined structure: data fields of specific types and order. Those fields can be accessed using indexes, where index 0 represents first data field within an option. The last field can be accessed using index equal to 'number of fields' - 1. Internally, the option data is stored as a collection of OptionBuffer objects, each representing data for a particular data field. This data can be converted to the actual data type using methods implemented within this class. This class is used to represent those options that can't be represented by any other specialized class (this excludes the Option class which is generic and can be used to represent any option).
Definition at line 32 of file option_custom.h.
isc::dhcp::OptionCustom::OptionCustom | ( | const OptionDefinition & | def, |
Universe | u | ||
) |
Constructor, used for options to be sent.
This constructor creates an instance of an option with default data set for all data fields. The option buffers are allocated according to data size being stored in particular data fields. For variable size data empty buffers are created.
def | option definition. |
u | specifies universe (V4 or V6) |
Definition at line 19 of file option_custom.cc.
References isc::dhcp::OptionDefinition::getEncapsulatedSpace(), and isc::dhcp::Option::setEncapsulatedSpace().
isc::dhcp::OptionCustom::OptionCustom | ( | const OptionDefinition & | def, |
Universe | u, | ||
const OptionBuffer & | data | ||
) |
Constructor, used for options to be sent.
This constructor creates an instance of an option from the whole supplied buffer. This constructor is mainly used to create an instances of options to be stored in outgoing DHCP packets. The buffer used to create the instance of an option can be created from the option data specified in server's configuration.
def | option definition. |
u | specifies universe (V4 or V6). |
data | content of the option. |
OutOfRange | if option buffer is truncated. |
Definition at line 27 of file option_custom.cc.
References isc::dhcp::Option::getData(), isc::dhcp::OptionDefinition::getEncapsulatedSpace(), and isc::dhcp::Option::setEncapsulatedSpace().
isc::dhcp::OptionCustom::OptionCustom | ( | const OptionDefinition & | def, |
Universe | u, | ||
OptionBufferConstIter | first, | ||
OptionBufferConstIter | last | ||
) |
Constructor, used for received options.
This constructor creates an instance an option from the portion of the buffer specified by iterators. This is mainly useful when parsing received packets. Such packets are represented by a single buffer holding option data and all sub options. Methods that are parsing a packet, supply relevant portions of the packet buffer to this constructor to create option instances out of it.
def | option definition. |
u | specifies universe (V4 or V6). |
first | iterator to the first element that should be copied. |
last | iterator to the next element after the last one to be copied. |
OutOfRange | if option buffer is truncated. |
Definition at line 36 of file option_custom.cc.
References isc::dhcp::Option::getData(), isc::dhcp::OptionDefinition::getEncapsulatedSpace(), and isc::dhcp::Option::setEncapsulatedSpace().
void isc::dhcp::OptionCustom::addArrayDataField | ( | const asiolink::IOAddress & | address | ) |
Create new buffer and set its value as an IP address.
address | IPv4 or IPv6 address to be written to a buffer being created. |
Definition at line 52 of file option_custom.cc.
References isc::dhcp::OptionDefinition::getType(), isc_throw, isc::asiolink::IOAddress::isV4(), isc::asiolink::IOAddress::isV6(), isc::dhcp::OPT_IPV4_ADDRESS_TYPE, isc::dhcp::OPT_IPV6_ADDRESS_TYPE, and isc::dhcp::OptionDataTypeUtil::writeAddress().
void isc::dhcp::OptionCustom::addArrayDataField | ( | const bool | value | ) |
Create new buffer and store boolean value in it.
value | value to be stored in the created buffer. |
Definition at line 89 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writeBool().
|
inline |
Create new buffer and store integer value in it.
value | value to be stored in the created buffer. |
T | integer type of the value being stored. |
Definition at line 103 of file option_custom.h.
References isc::dhcp::OptionDefinition::getRecordFields(), isc::dhcp::OptionDefinition::getType(), isc_throw, and isc::dhcp::OPT_RECORD_TYPE.
void isc::dhcp::OptionCustom::addArrayDataField | ( | const std::string & | value | ) |
Create new buffer and store tuple value in it.
value | value to be stored as a tuple in the created buffer. |
Definition at line 69 of file option_custom.cc.
References isc::dhcp::Option::getUniverse(), isc::dhcp::OpaqueDataTuple::LENGTH_1_BYTE, isc::dhcp::OpaqueDataTuple::LENGTH_2_BYTES, isc::dhcp::Option::V4, and isc::dhcp::OptionDataTypeUtil::writeTuple().
void isc::dhcp::OptionCustom::addArrayDataField | ( | const OpaqueDataTuple & | value | ) |
Create new buffer and store tuple value in it.
value | value to be stored as a tuple in the created buffer. |
Definition at line 80 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writeTuple().
void isc::dhcp::OptionCustom::addArrayDataField | ( | const PrefixLen & | prefix_len, |
const asiolink::IOAddress & | prefix | ||
) |
Create new buffer and store variable length prefix in it.
prefix_len | Prefix length. |
prefix | Prefix. |
Definition at line 98 of file option_custom.cc.
References isc::dhcp::OptionDefinition::getType(), isc_throw, isc::dhcp::OPT_IPV6_PREFIX_TYPE, and isc::dhcp::OptionDataTypeUtil::writePrefix().
Create new buffer and store PSID length / value in it.
Definition at line 113 of file option_custom.cc.
References isc::dhcp::OptionDefinition::getType(), isc_throw, isc::dhcp::OPT_PSID_TYPE, and isc::dhcp::OptionDataTypeUtil::writePsid().
|
virtual |
Copies this option and returns a pointer to the copy.
Reimplemented from isc::dhcp::Option.
Definition at line 47 of file option_custom.cc.
|
inline |
Return a number of the data fields.
Definition at line 147 of file option_custom.h.
Referenced by toText().
void isc::dhcp::OptionCustom::initialize | ( | const OptionBufferConstIter | first, |
const OptionBufferConstIter | last | ||
) |
Sets content of this option from buffer.
Option will be resized to length of buffer.
first | iterator pointing to beginning of buffer to copy. |
last | iterator pointing to end of buffer to copy. |
Definition at line 685 of file option_custom.cc.
References isc::dhcp::Option::getData(), and isc::dhcp::Option::setData().
Referenced by unpack().
|
virtual |
Returns length of the complete option (data length + DHCPv4/DHCPv6 option header)
Reimplemented from isc::dhcp::Option.
Definition at line 665 of file option_custom.cc.
References isc::dhcp::Option::getHeaderLen(), and isc::dhcp::Option::options_.
|
virtual |
Writes DHCP option in a wire format to a buffer.
buf | output buffer (option will be stored there). |
Reimplemented from isc::dhcp::Option.
Definition at line 458 of file option_custom.cc.
References isc::dhcp::Option::packHeader(), isc::dhcp::Option::packOptions(), and isc::util::OutputBuffer::writeData().
IOAddress isc::dhcp::OptionCustom::readAddress | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as IP address.
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 480 of file option_custom.cc.
References isc_throw, and isc::dhcp::OptionDataTypeUtil::readAddress().
const OptionBuffer & isc::dhcp::OptionCustom::readBinary | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as binary data.
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 516 of file option_custom.cc.
bool isc::dhcp::OptionCustom::readBoolean | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as boolean value.
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 562 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::readBool().
std::string isc::dhcp::OptionCustom::readFqdn | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as FQDN.
index | buffer index. |
isc::OutOfRange | if buffer index is out of range. |
isc::dhcp::BadDataTypeCast | if a buffer being read does not hold a valid FQDN. |
Definition at line 576 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::readFqdn().
|
inline |
Read a buffer as integer value.
index | buffer index. |
integer | type of a value being returned. |
isc::OutOfRange | if index is out of range. |
isc::dhcp::InvalidDataType | if T is invalid. |
Definition at line 252 of file option_custom.h.
References isc_throw_assert.
Referenced by checkIAStatus().
PrefixTuple isc::dhcp::OptionCustom::readPrefix | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as variable length prefix.
index | buffer index. |
isc::OutOfRange | of index is out of range. |
Definition at line 599 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::readPrefix().
PSIDTuple isc::dhcp::OptionCustom::readPsid | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as a PSID length / value tuple.
index | buffer index. |
isc::OutOfRange | of index is out of range. |
Definition at line 619 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::readPsid().
std::string isc::dhcp::OptionCustom::readString | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as string value.
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 638 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::readString().
std::string isc::dhcp::OptionCustom::readTuple | ( | const uint32_t | index = 0 | ) | const |
Read a buffer as length and string tuple.
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 529 of file option_custom.cc.
References isc::dhcp::Option::getUniverse(), isc::dhcp::OpaqueDataTuple::LENGTH_1_BYTE, isc::dhcp::OpaqueDataTuple::LENGTH_2_BYTES, isc::dhcp::OptionDataTypeUtil::readTuple(), and isc::dhcp::Option::V4.
void isc::dhcp::OptionCustom::readTuple | ( | OpaqueDataTuple & | tuple, |
const uint32_t | index = 0 |
||
) | const |
Read a buffer into a length and string tuple.
tuple | tuple to fill. |
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 537 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::readTuple().
|
virtual |
Returns string representation of the option.
indent | number of spaces before printed text. |
Reimplemented from isc::dhcp::Option.
Definition at line 694 of file option_custom.cc.
References isc::dhcp::OptionDefinition::getArrayType(), getDataFieldsNum(), isc::dhcp::OptionDefinition::getRecordFields(), isc::dhcp::OptionDefinition::getType(), isc::dhcp::Option::headerToText(), isc::dhcp::OPT_RECORD_TYPE, and isc::dhcp::Option::suboptionsToText().
|
virtual |
Parses received buffer.
begin | iterator to first byte of option data |
end | iterator to end of option data (first byte after option end) |
Reimplemented from isc::dhcp::Option.
Definition at line 659 of file option_custom.cc.
References initialize().
void isc::dhcp::OptionCustom::writeAddress | ( | const asiolink::IOAddress & | address, |
const uint32_t | index = 0 |
||
) |
Write an IP address into a buffer.
address | IP address being written. |
index | buffer index. |
isc::OutOfRange | if index is out of range. |
isc::dhcp::BadDataTypeCast | if IP address is invalid. |
Definition at line 498 of file option_custom.cc.
References isc_throw, isc::asiolink::IOAddress::isV4(), isc::asiolink::IOAddress::isV6(), and isc::dhcp::OptionDataTypeUtil::writeAddress().
void isc::dhcp::OptionCustom::writeBinary | ( | const OptionBuffer & | buf, |
const uint32_t | index = 0 |
||
) |
Write binary data into a buffer.
buf | buffer holding binary data to be written. |
index | buffer index. |
Definition at line 522 of file option_custom.cc.
void isc::dhcp::OptionCustom::writeBoolean | ( | const bool | value, |
const uint32_t | index = 0 |
||
) |
Write a boolean value into a buffer.
value | boolean value to be written. |
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 568 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writeBool().
void isc::dhcp::OptionCustom::writeFqdn | ( | const std::string & | fqdn, |
const uint32_t | index = 0 |
||
) |
Write an FQDN into a buffer.
fqdn | text representation of FQDN. |
index | buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 582 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writeFqdn().
|
inline |
Write an integer value into a buffer.
value | integer value to be written. |
index | buffer index. |
T | integer type of a value being written. |
isc::OutOfRange | if index is out of range. |
isc::dhcp::InvalidDataType | if T is invalid. |
Definition at line 274 of file option_custom.h.
void isc::dhcp::OptionCustom::writePrefix | ( | const PrefixLen & | prefix_len, |
const asiolink::IOAddress & | prefix, | ||
const uint32_t | index = 0 |
||
) |
Write prefix length and value into a buffer.
prefix_len | Prefix length. |
prefix | Prefix value. |
index | Buffer index. |
isc::OutOfRange | if index is out of range. |
Definition at line 605 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writePrefix().
void isc::dhcp::OptionCustom::writePsid | ( | const PSIDLen & | psid_len, |
const PSID & | psid, | ||
const uint32_t | index = 0 |
||
) |
Write PSID length / value into a buffer.
psid_len | PSID length value. |
psid | PSID value in the range of 0 .. 2^(PSID length). |
index | buffer index. |
isc::dhcp::BadDataTypeCast | if PSID length or value is invalid. |
isc::OutOfRange | if index is out of range. |
Definition at line 625 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writePsid().
void isc::dhcp::OptionCustom::writeString | ( | const std::string & | text, |
const uint32_t | index = 0 |
||
) |
Write a string value into a buffer.
text | the string value to be written. |
index | buffer index. |
Definition at line 644 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writeString().
void isc::dhcp::OptionCustom::writeTuple | ( | const std::string & | value, |
const uint32_t | index = 0 |
||
) |
Write a length and string tuple into a buffer.
value | value to be written. |
index | buffer index. |
Definition at line 544 of file option_custom.cc.
References isc::dhcp::Option::getUniverse(), isc::dhcp::OpaqueDataTuple::LENGTH_1_BYTE, isc::dhcp::OpaqueDataTuple::LENGTH_2_BYTES, isc::dhcp::Option::V4, and isc::dhcp::OptionDataTypeUtil::writeTuple().
void isc::dhcp::OptionCustom::writeTuple | ( | const OpaqueDataTuple & | value, |
const uint32_t | index = 0 |
||
) |
Write a length and string tuple into a buffer.
value | value to be written. |
index | buffer index. |
Definition at line 554 of file option_custom.cc.
References isc::dhcp::OptionDataTypeUtil::writeTuple().