All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
dhcpd.c File Reference
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/protocol.h>
#include <freeradius-devel/process.h>
#include <freeradius-devel/dhcp.h>
#include <freeradius-devel/rad_assert.h>
#include <sys/ioctl.h>
+ Include dependency graph for dhcpd.c:

Go to the source code of this file.

Data Structures

struct  dhcp_socket_t
 

Macros

#define USEC   1000000
 

Typedefs

typedef struct dhcp_socket_t dhcp_socket_t
 

Functions

static void dhcp_packet_debug (REQUEST *request, RADIUS_PACKET *packet, bool received)
 
static int dhcp_process (REQUEST *request)
 
static int dhcp_socket_decode (UNUSED rad_listen_t *listener, REQUEST *request)
 
static int dhcp_socket_encode (UNUSED rad_listen_t *listener, UNUSED REQUEST *request)
 
static int dhcp_socket_parse (CONF_SECTION *cs, rad_listen_t *this)
 
static int dhcp_socket_recv (rad_listen_t *listener)
 
static int dhcp_socket_send (rad_listen_t *listener, REQUEST *request)
 
static int dhcprelay_process_client_request (UNUSED REQUEST *request)
 
static int dhcprelay_process_server_reply (UNUSED REQUEST *request)
 

Variables

static const uint32_t attrnums []
 
fr_protocol_t proto_dhcp
 

Data Structure Documentation

struct dhcp_socket_t

Definition at line 62 of file dhcpd.c.

+ Collaboration diagram for dhcp_socket_t:
Data Fields
RADCLIENT dhcp_client
listen_socket_t lsock
char const * src_interface
fr_ipaddr_t src_ipaddr
bool suppress_responses

Macro Definition Documentation

#define USEC   1000000

Typedef Documentation

typedef struct dhcp_socket_t dhcp_socket_t

Function Documentation

static void dhcp_packet_debug ( REQUEST request,
RADIUS_PACKET packet,
bool  received 
)
static

Definition at line 899 of file dhcpd.c.

+ Here is the call graph for this function:

static int dhcp_process ( REQUEST request)
static

Definition at line 294 of file dhcpd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int dhcp_socket_decode ( UNUSED rad_listen_t listener,
REQUEST request 
)
static

Definition at line 986 of file dhcpd.c.

+ Here is the call graph for this function:

static int dhcp_socket_encode ( UNUSED rad_listen_t listener,
UNUSED REQUEST request 
)
static

Definition at line 979 of file dhcpd.c.

static int dhcp_socket_parse ( CONF_SECTION cs,
rad_listen_t this 
)
static

Definition at line 696 of file dhcpd.c.

+ Here is the call graph for this function:

static int dhcp_socket_recv ( rad_listen_t listener)
static

Definition at line 814 of file dhcpd.c.

+ Here is the call graph for this function:

static int dhcp_socket_send ( rad_listen_t listener,
REQUEST request 
)
static

Definition at line 854 of file dhcpd.c.

+ Here is the call graph for this function:

static int dhcprelay_process_client_request ( UNUSED REQUEST request)
static

Definition at line 273 of file dhcpd.c.

+ Here is the caller graph for this function:

static int dhcprelay_process_server_reply ( UNUSED REQUEST request)
static

Definition at line 267 of file dhcpd.c.

+ Here is the caller graph for this function:

Variable Documentation

const uint32_t attrnums[]
static
Initial value:
= {
57,
256,
257,
258,
259,
260,
262,
263,
266,
267
}

Definition at line 281 of file dhcpd.c.

fr_protocol_t proto_dhcp
Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "dhcp",
.inst_size = sizeof(dhcp_socket_t),
.transports = TRANSPORT_UDP,
.tls = false,
.encode = dhcp_socket_encode,
}
#define RLM_MODULE_INIT
Definition: modules.h:86
static int dhcp_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
Definition: dhcpd.c:696
#define TRANSPORT_UDP
Definition: protocol.h:62
int common_socket_open(CONF_SECTION *cs, rad_listen_t *this)
Definition: listen.c:1599
static void dhcp_packet_debug(REQUEST *request, RADIUS_PACKET *packet, bool received)
Definition: dhcpd.c:899
static int dhcp_socket_send(rad_listen_t *listener, REQUEST *request)
Definition: dhcpd.c:854
static int dhcp_socket_recv(rad_listen_t *listener)
Definition: dhcpd.c:814
struct dhcp_socket_t dhcp_socket_t
static int dhcp_socket_encode(UNUSED rad_listen_t *listener, UNUSED REQUEST *request)
Definition: dhcpd.c:979
int common_socket_print(rad_listen_t const *this, char *buffer, size_t bufsize)
Definition: listen.c:1021
static int dhcp_socket_decode(UNUSED rad_listen_t *listener, REQUEST *request)
Definition: dhcpd.c:986

Definition at line 992 of file dhcpd.c.