15#include <boost/shared_ptr.hpp>
66 size_t transid_offset = 1,
67 uint32_t transid = 0);
108 std::vector<uint8_t>::iterator first,
109 std::vector<uint8_t>::iterator last);
124 size_t transid_offset_;
Represents DHCPv4 packet.
size_t len()
Returns the size of the required buffer to build the packet.
OptionBuffer data_
Unparsed data (in received packets).
bool rawUnpack()
Handles limited binary packet parsing for packets with custom offsets of options and transaction ID.
boost::shared_ptr< LocalizedOption > LocalizedOptionPtr
Localized option pointer type.
bool rawPack()
Prepares on-wire format from raw buffer.
void writeAt(size_t dest_pos, std::vector< uint8_t >::iterator first, std::vector< uint8_t >::iterator last)
Replace contents of buffer with data.
PerfPkt4(const uint8_t *buf, size_t len, size_t transid_offset=1, uint32_t transid=0)
Constructor, used to create messages from packet template files.
void writeValueAt(size_t dest_pos, T val)
Replace contents of buffer with value.
size_t getTransidOffset() const
Returns transaction id offset in packet buffer.
boost::shared_ptr< PerfPkt4 > PerfPkt4Ptr
Defines the logger used by the top-level component of kea-lfc.