23 size_t transid_offset,
26 transid_offset_(transid_offset) {
56 std::vector<uint8_t>::iterator first,
57 std::vector<uint8_t>::iterator last) {
Represents DHCPv4 packet.
OptionBuffer data_
Unparsed data (in received packets).
uint32_t getTransid() const
Returns value of transaction-id field.
isc::dhcp::OptionCollection options_
Collection of options present in this message.
isc::util::OutputBuffer buffer_out_
Output buffer (used during message transmission)
void setTransid(uint32_t transid)
Sets transaction-id value.
bool rawUnpack()
Handles limited binary packet parsing for packets with custom offsets of options and transaction ID.
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.
size_t getTransidOffset() const
Returns transaction id offset in packet buffer.
Defines the logger used by the top-level component of kea-lfc.