 |
Kea
1.5.0
|
Go to the documentation of this file.
7 #ifndef OPTION_VENDOR_H
8 #define OPTION_VENDOR_H
79 void setVendorId(
const uint32_t vendor_id) { vendor_id_ = vendor_id; }
91 virtual uint16_t
len()
const;
98 virtual std::string
toText(
int indent = 0)
const;
110 uint8_t dataLen()
const;
121 #endif // OPTION_VENDOR_H
const int VENDOR_CLASS_DATA_LEN_INDEX
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
OptionPtr clone() const
Copies this option and returns a pointer to the copy.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual void pack(isc::util::OutputBuffer &buf) const
Writes option in wire-format to buf, returns pointer to first unused byte after stored option.
virtual uint16_t len() const
returns complete length of option
uint32_t getVendorId() const
Returns enterprise identifier.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
const int VENDOR_CLASS_STRING_INDEX
This class represents vendor-specific information option.
boost::shared_ptr< Option > OptionPtr
boost::shared_ptr< OptionVendor > OptionVendorPtr
Pointer to a vendor option.
Universe
defines option universe DHCPv4 or DHCPv6
OptionVendor(Option::Universe u, const uint32_t vendor_id)
Constructor.
void setVendorId(const uint32_t vendor_id)
Sets enterprise identifier.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
virtual std::string toText(int indent=0) const
Returns the option in the textual format.
const int VENDOR_CLASS_ENTERPRISE_ID_INDEX
Indexes for fields in vendor-class (17) DHCPv6 option.