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