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