24 :
Pkt4(&pkt4[0], pkt4.size()), pkt6_(pkt6)
33 :
Pkt4(*pkt4), pkt6_(pkt6) {
40 const uint8_t* ptr =
static_cast<const uint8_t*
>(buf.
getData());
46 pkt6_->addOption(dhcp4_msg);
54 pkt6_->setCopyRetrievedOptions(copy);
const void * getData() const
Return a pointer to the head of the data stored in the buffer.
boost::shared_ptr< Option > OptionPtr
Pkt4o6(const OptionBuffer &pkt4, const Pkt6Ptr &pkt6)
Constructor, used in message reception.
virtual void setCopyRetrievedOptions(const bool copy)
Controls whether the option retrieved by the Pkt::getOption should be copied before being returned...
void setIface(const std::string &iface)
Sets interface name.
std::vector< uint8_t > OptionBuffer
buffer types used in DHCP code.
void setRemoteAddr(const isc::asiolink::IOAddress &remote)
Sets remote IP address.
boost::shared_ptr< Pkt6 > Pkt6Ptr
A pointer to Pkt6 packet.
ElementPtr copy(ConstElementPtr from, int level)
Copy the data up to a nesting level.
virtual void pack()
Prepares on-wire format of DHCPv4-over-DHCPv6 packet.
boost::shared_ptr< Pkt4 > Pkt4Ptr
A pointer to Pkt4 object.
isc::util::OutputBuffer & getBuffer()
Returns reference to output buffer.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Represents DHCPv4 packet.
void setIndex(uint32_t ifindex)
Sets interface index.
virtual void pack()
Prepares on-wire format of DHCPv4 packet.
size_t getLength() const
Return the length of data written in the buffer.
virtual void setCopyRetrievedOptions(const bool copy)
Overrides the Pkt::setCopyRetrievedOptions to also set the flag for encapsulated Pkt6 instance...