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