#include "dhcpd.h"
Go to the source code of this file.
Definition at line 246 of file confpars.c.
void get_permit | ( | struct parse * | cfile, |
struct permit ** | permit_head, | ||
int | is_allow, | ||
TIME * | valid_from, | ||
TIME * | valid_until | ||
) |
Parse allow and deny statements.
This function handles the common processing code for permit and deny statements in the parse_pool_statement and parse_pool6_statement functions. It reads in the configuration and constructs a new permit structure that it attachs to the permit_head passed in from the caller.
The allow or deny token should already be consumed, this function expects one of the following: known-clients; unknown-clients; known clients; unknown clients; authenticated clients; unauthenticated clients; all clients; dynamic bootp clients; members of <class name>="">; after <date>;
[in] | cfile | = the configuration file being parsed |
[in] | permit_head | = the head of the permit list (permit or prohibit) to which to attach the newly created permit structure |
[in] | is_allow | = 1 if this is being invoked for an allow statement = 0 if this is being invoked for a deny statement |
[in] | valid_from | = pointers to the time values from the enclosing pool |
[in] | valid_until | or pond structure. One of them will be filled in if the configuration includes an "after" clause |
Definition at line 1551 of file confpars.c.
isc_result_t lease_file_subparse | ( | struct parse * | cfile | ) |
Definition at line 273 of file confpars.c.
void parse_address_range | ( | struct parse * | cfile, |
struct group * | group, | ||
int | type, | ||
struct pool * | inpool, | ||
struct lease ** | lpchain | ||
) |
Definition at line 3763 of file confpars.c.
int parse_allow_deny | ( | struct option_cache ** | oc, |
struct parse * | cfile, | ||
int | flag | ||
) |
Definition at line 4660 of file confpars.c.
int parse_class_declaration | ( | struct class ** | cp, |
struct parse * | cfile, | ||
struct group * | group, | ||
int | type | ||
) |
Definition at line 2216 of file confpars.c.
int parse_fixed_addr_param | ( | struct option_cache ** | oc, |
struct parse * | cfile, | ||
enum dhcp_token | type | ||
) |
Definition at line 3055 of file confpars.c.
Definition at line 2962 of file confpars.c.
Definition at line 1952 of file confpars.c.
void parse_ia_na_declaration | ( | struct parse * | cfile | ) |
Definition at line 4728 of file confpars.c.
void parse_ia_pd_declaration | ( | struct parse * | cfile | ) |
Definition at line 5611 of file confpars.c.
void parse_ia_ta_declaration | ( | struct parse * | cfile | ) |
Definition at line 5175 of file confpars.c.
Definition at line 1934 of file confpars.c.
Definition at line 3126 of file confpars.c.
Parse a pool statement.
Pool statements are used to group declarations and permit & deny information with a specific address range. They must be declared within a shared network or subnet and there may be multiple pools withing a shared network or subnet. Each pool may have a different set of permit or deny options.
[in] | cfile | = the configuration file being parsed |
[in] | group | = the group structure for this pool |
[in] | type | = the type of the enclosing statement. This must be SHARED_NET_DECL or SUBNET_DECL for this function. |
Definition at line 1725 of file confpars.c.
Definition at line 2596 of file confpars.c.
int parse_statement | ( | struct parse * | cfile, |
struct group * | group, | ||
int | type, | ||
struct host_decl * | host_decl, | ||
int | declaration | ||
) |
Definition at line 360 of file confpars.c.
void parse_subnet6_declaration | ( | struct parse * | cfile, |
struct shared_network * | share | ||
) |
Definition at line 2841 of file confpars.c.
void parse_subnet_declaration | ( | struct parse * | cfile, |
struct shared_network * | share | ||
) |
Definition at line 2753 of file confpars.c.
Definition at line 1681 of file confpars.c.
isc_result_t read_conf_file | ( | const char * | filename, |
struct group * | group, | ||
int | group_type, | ||
int | leasep | ||
) |
Definition at line 79 of file confpars.c.
isc_result_t readconf | ( | void | ) |
Definition at line 64 of file confpars.c.