The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
udp.c File Reference

Send/recv DHCP packets using udp sockets. More...

#include "dhcpv4.h"
#include "attrs.h"
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/udpfromto.h>
#include <freeradius-devel/util/syserror.h>
+ Include dependency graph for udp.c:

Go to the source code of this file.

Functions

fr_packet_tfr_dhcpv4_udp_packet_recv (int sockfd)
 Receive DHCP packet using a connectionless UDP socket. More...
 
int fr_dhcpv4_udp_packet_send (fr_packet_t *packet)
 Send DHCP packet using a connectionless UDP socket. More...
 

Detailed Description

Send/recv DHCP packets using udp sockets.

Id
ab4ad5ed2201c5e327faa9f9374efecff886a9e4

Definition in file udp.c.

Function Documentation

◆ fr_dhcpv4_udp_packet_recv()

fr_packet_t* fr_dhcpv4_udp_packet_recv ( int  sockfd)

Receive DHCP packet using a connectionless UDP socket.

Parameters
sockfdhandle.
Returns
  • pointer to fr_packet_t if successful.
  • NULL if failed.

Definition at line 74 of file udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_dhcpv4_udp_packet_send()

int fr_dhcpv4_udp_packet_send ( fr_packet_t packet)

Send DHCP packet using a connectionless UDP socket.

Parameters
packetto send
Returns
  • >= 0 if successful.
  • < 0 if failed.

Definition at line 41 of file udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: