Kea 2.7.5
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

namespace  isc
 Defines the logger used by the top-level component of kea-lfc.
 
namespace  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.
 
void isc::dhcp::decodeEthernetHeader (util::InputBuffer &buf, Pkt4Ptr &pkt)
 Decode the Ethernet header.
 
void isc::dhcp::decodeIpUdpHeader (util::InputBuffer &buf, Pkt4Ptr &pkt)
 Decode IP and UDP header.
 
void isc::dhcp::writeEthernetHeader (const Pkt4Ptr &pkt, util::OutputBuffer &out_buf)
 Writes ethernet frame header into a buffer.
 
void isc::dhcp::writeIpUdpHeader (const Pkt4Ptr &pkt, util::OutputBuffer &out_buf)
 Writes both IP and UDP header into output buffer.