Kea  1.9.9-git
protocol_util.h File Reference
#include <dhcp/pkt4.h>
#include <util/buffer.h>
#include <stdint.h>
+ Include dependency graph for protocol_util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  isc::dhcp::InvalidPacketHeader
 Exception thrown when error occurred during parsing packet's headers. More...
 

Namespaces

 isc
 Defines the logger used by the top-level component of kea-dhcp-ddns.
 
 isc::dhcp
 

Functions

uint16_t isc::dhcp::calcChecksum (const uint8_t *buf, const uint32_t buf_size, uint32_t sum=0)
 Calculates checksum for provided buffer. More...
 
void isc::dhcp::decodeEthernetHeader (util::InputBuffer &buf, Pkt4Ptr &pkt)
 Decode the Ethernet header. More...
 
void isc::dhcp::decodeIpUdpHeader (util::InputBuffer &buf, Pkt4Ptr &pkt)
 Decode IP and UDP header. More...
 
void isc::dhcp::writeEthernetHeader (const Pkt4Ptr &pkt, util::OutputBuffer &out_buf)
 Writes ethernet frame header into a buffer. More...
 
void isc::dhcp::writeIpUdpHeader (const Pkt4Ptr &pkt, util::OutputBuffer &out_buf)
 Writes both IP and UDP header into output buffer. More...