ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
clparse.c File Reference
#include "dhcpd.h"
#include <errno.h>

Go to the source code of this file.

Macros

#define NUM_DEFAULT_REQUESTED_OPTS   15
 

Functions

void discard_duplicate (struct client_lease **lease_list, struct client_lease *lease)
 
isc_result_t read_client_conf ()
 
int read_client_conf_file (const char *name, struct interface_info *ip, struct client_config *client)
 
void read_client_duid ()
 
void read_client_leases ()
 
void parse_client_statement (struct parse *cfile, struct interface_info *ip, struct client_config *config)
 
int parse_option_list (struct parse *cfile, struct option ***list)
 
void parse_interface_declaration (struct parse *cfile, struct client_config *outer_config, char *name)
 
int interface_or_dummy (struct interface_info **pi, const char *name)
 
void make_client_state (struct client_state **state)
 
void make_client_config (struct client_state *client, struct client_config *config)
 
void parse_client_lease_statement (struct parse *cfile, int is_static)
 
void parse_client_lease_declaration (struct parse *cfile, struct client_lease *lease, struct interface_info **ipp, struct client_state **clientp)
 
void parse_string_list (struct parse *cfile, struct string_list **lp, int multiple)
 
void parse_reject_statement (struct parse *cfile, struct client_config *config)
 
int parse_allow_deny (struct option_cache **oc, struct parse *cfile, int flag)
 

Variables

struct client_config top_level_config
 
struct optiondefault_requested_options [NUM_DEFAULT_REQUESTED_OPTS+2+1]
 

Macro Definition Documentation

◆ NUM_DEFAULT_REQUESTED_OPTS

#define NUM_DEFAULT_REQUESTED_OPTS   15

Definition at line 34 of file clparse.c.

Function Documentation

◆ discard_duplicate()

void discard_duplicate ( struct client_lease ** lease_list,
struct client_lease * lease )
extern

Definition at line 3065 of file dhclient.c.

◆ interface_or_dummy()

int interface_or_dummy ( struct interface_info ** pi,
const char * name )

Definition at line 1052 of file clparse.c.

◆ make_client_config()

void make_client_config ( struct client_state * client,
struct client_config * config )

Definition at line 1115 of file clparse.c.

◆ make_client_state()

void make_client_state ( struct client_state ** state)

Definition at line 1106 of file clparse.c.

◆ parse_allow_deny()

int parse_allow_deny ( struct option_cache ** oc,
struct parse * cfile,
int flag )

Definition at line 2339 of file clparse.c.

◆ parse_client_lease_declaration()

void parse_client_lease_declaration ( struct parse * cfile,
struct client_lease * lease,
struct interface_info ** ipp,
struct client_state ** clientp )

Definition at line 1258 of file clparse.c.

◆ parse_client_lease_statement()

void parse_client_lease_statement ( struct parse * cfile,
int is_static )

Definition at line 1140 of file clparse.c.

◆ parse_client_statement()

void parse_client_statement ( struct parse * cfile,
struct interface_info * ip,
struct client_config * config )

Definition at line 438 of file clparse.c.

◆ parse_interface_declaration()

void parse_interface_declaration ( struct parse * cfile,
struct client_config * outer_config,
char * name )

Definition at line 989 of file clparse.c.

◆ parse_option_list()

int parse_option_list ( struct parse * cfile,
struct option *** list )

Definition at line 915 of file clparse.c.

◆ parse_reject_statement()

void parse_reject_statement ( struct parse * cfile,
struct client_config * config )

Definition at line 2275 of file clparse.c.

◆ parse_string_list()

void parse_string_list ( struct parse * cfile,
struct string_list ** lp,
int multiple )

Definition at line 2225 of file clparse.c.

◆ read_client_conf()

isc_result_t read_client_conf ( void )

Definition at line 58 of file clparse.c.

◆ read_client_conf_file()

int read_client_conf_file ( const char * name,
struct interface_info * ip,
struct client_config * client )

Definition at line 294 of file clparse.c.

◆ read_client_duid()

void read_client_duid ( void )

Definition at line 333 of file clparse.c.

◆ read_client_leases()

void read_client_leases ( void )

Definition at line 369 of file clparse.c.

Variable Documentation

◆ default_requested_options

struct option* default_requested_options[NUM_DEFAULT_REQUESTED_OPTS+2+1]

Definition at line 36 of file clparse.c.

◆ top_level_config

struct client_config top_level_config

Definition at line 32 of file clparse.c.