The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/server/packet.h>
#include <freeradius-devel/dhcpv4/dhcpv4.h>
#include <freeradius-devel/util/pcap.h>
#include <ctype.h>
#include <assert.h>
#include <net/if.h>
Go to the source code of this file.
Data Structures | |
struct | dc_offer_t |
Macros | |
#define | DEBUG(fmt, ...) if (fr_debug_lvl > 0) fprintf(stdout, fmt "\n", ## __VA_ARGS__) |
#define | ERROR(fmt, ...) fr_perror("dhcpclient: " fmt, ## __VA_ARGS__) |
Functions | |
static void | dhcp_packet_debug (fr_packet_t *packet, fr_pair_list_t *list, bool received) |
int | main (int argc, char **argv) |
static int | request_init (fr_packet_t **out, fr_pair_list_t *packet_vps, char const *filename) |
static int | send_with_socket (fr_packet_t **reply, fr_packet_t *request, UNUSED fr_pair_list_t *request_list) |
static NEVER_RETURNS void | usage (void) |
Variables | |
static fr_dict_attr_t const * | attr_dhcp_dhcp_server_identifier |
static fr_dict_attr_t const * | attr_dhcp_message_type |
static fr_dict_attr_t const * | attr_dhcp_your_ip_address |
static fr_dict_attr_t const * | attr_packet_type |
fr_dict_autoload_t | dhcpclient_dict [] |
fr_dict_attr_autoload_t | dhcpclient_dict_attr [] |
static char const * | dhcpclient_version = RADIUSD_VERSION_BUILD("dhcpclient") |
static fr_dict_t const * | dict_dhcpv4 |
static fr_dict_t const * | dict_freeradius |
static char * | iface = NULL |
static int | iface_ind = -1 |
static bool | raw_mode = false |
static bool | reply_expected = true |
static fr_table_num_sorted_t const | request_types [] |
static size_t | request_types_len = NUM_ELEMENTS(request_types) |
static int | retries = 3 |
static int | sockfd |
static fr_time_delta_t | timeout |
struct dc_offer_t |
Definition at line 74 of file dhcpclient.c.
Data Fields | ||
---|---|---|
uint32_t | offered_addr | |
uint32_t | server_addr |
#define DEBUG | ( | fmt, | |
... | |||
) | if (fr_debug_lvl > 0) fprintf(stdout, fmt "\n", ## __VA_ARGS__) |
Definition at line 39 of file dhcpclient.c.
Definition at line 41 of file dhcpclient.c.
|
static |
Definition at line 465 of file dhcpclient.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
|
static |
Definition at line 136 of file dhcpclient.c.
|
static |
Definition at line 329 of file dhcpclient.c.
|
static |
|
static |
Definition at line 91 of file dhcpclient.c.
|
static |
Definition at line 90 of file dhcpclient.c.
|
static |
Definition at line 92 of file dhcpclient.c.
|
static |
Definition at line 89 of file dhcpclient.c.
fr_dict_autoload_t dhcpclient_dict |
Definition at line 83 of file dhcpclient.c.
fr_dict_attr_autoload_t dhcpclient_dict_attr |
Definition at line 95 of file dhcpclient.c.
|
static |
Definition at line 71 of file dhcpclient.c.
|
static |
Definition at line 80 of file dhcpclient.c.
|
static |
Definition at line 79 of file dhcpclient.c.
|
static |
Definition at line 61 of file dhcpclient.c.
|
static |
Definition at line 62 of file dhcpclient.c.
Definition at line 68 of file dhcpclient.c.
Definition at line 69 of file dhcpclient.c.
|
static |
Definition at line 103 of file dhcpclient.c.
|
static |
Definition at line 112 of file dhcpclient.c.
|
static |
Definition at line 53 of file dhcpclient.c.
|
static |
Definition at line 56 of file dhcpclient.c.
|
static |
Definition at line 54 of file dhcpclient.c.