![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions to encode/decode DHCP packets. More...
#include <freeradius-devel/util/pair.h>#include <freeradius-devel/util/rand.h>#include <freeradius-devel/protocol/dhcpv4/rfc2131.h>#include "dhcpv4.h"#include "attrs.h"
Include dependency graph for packet.c:Go to the source code of this file.
Macros | |
| #define | ALIGNED_ACCESS(packet, field) (uint8_t const *)packet + offsetof(dhcp_packet_t, field) |
Functions | |
| int | fr_dhcpv4_decode (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, unsigned int *code) |
| fr_packet_t * | fr_dhcpv4_packet_alloc (uint8_t const *data, ssize_t data_len) |
| int | fr_dhcpv4_packet_encode (fr_packet_t *packet, fr_pair_list_t *list) |
| uint8_t const * | fr_dhcpv4_packet_get_option (dhcp_packet_t const *packet, size_t packet_size, fr_dict_attr_t const *da) |
| Retrieve a DHCP option from a raw packet buffer. | |
Functions to encode/decode DHCP packets.
Definition in file packet.c.
| #define ALIGNED_ACCESS | ( | packet, | |
| field | |||
| ) | (uint8_t const *)packet + offsetof(dhcp_packet_t, field) |
| int fr_dhcpv4_decode | ( | TALLOC_CTX * | ctx, |
| fr_pair_list_t * | out, | ||
| uint8_t const * | data, | ||
| size_t | data_len, | ||
| unsigned int * | code | ||
| ) |
| fr_packet_t * fr_dhcpv4_packet_alloc | ( | uint8_t const * | data, |
| ssize_t | data_len | ||
| ) |
| int fr_dhcpv4_packet_encode | ( | fr_packet_t * | packet, |
| fr_pair_list_t * | list | ||
| ) |
| uint8_t const * fr_dhcpv4_packet_get_option | ( | dhcp_packet_t const * | packet, |
| size_t | packet_size, | ||
| fr_dict_attr_t const * | da | ||
| ) |
1.9.8