#include "dhcpd.h"
#include <syslog.h>
#include <signal.h>
#include <sys/time.h>
#include <isc/file.h>
Go to the source code of this file.
Data Structures | |
struct | server_list |
Macros | |
#define | DHCRELAY_USAGE |
Enumerations | |
enum | { forward_and_append, forward_and_replace, forward_untouched, discard } |
Functions | |
int | main (int argc, char **argv) |
void | bootp (struct packet *packet) |
void | dhcp (struct packet *packet) |
void | classify (struct packet *p, struct class *c) |
int | check_collection (struct packet *p, struct lease *l, struct collection *c) |
isc_result_t | find_class (struct class **class, const char *c1, const char *c2, int i) |
int | parse_allow_deny (struct option_cache **oc, struct parse *p, int i) |
isc_result_t | dhcp_set_control_state (control_object_state_t oldstate, control_object_state_t newstate) |
Variables | |
TIME | default_lease_time = 43200 |
TIME | max_lease_time = 86400 |
struct tree_cache * | global_options [256] |
struct option * | requested_opts [2] |
int | lexline |
int | lexchar |
char * | token_line |
char * | tlname |
const char * | path_dhcrelay_pid = _PATH_DHCRELAY_PID |
isc_boolean_t | no_dhcrelay_pid = ISC_FALSE |
isc_boolean_t | no_pid_file = ISC_FALSE |
int | bogus_agent_drops = 0 |
int | bogus_giaddr_drops = 0 |
int | client_packets_relayed = 0 |
int | server_packet_errors = 0 |
int | server_packets_relayed = 0 |
int | client_packet_errors = 0 |
int | add_agent_options = 0 |
int | add_rfc3527_suboption = 0 |
int | agent_option_errors = 0 |
int | drop_agent_mismatches = 0 |
int | corrupt_agent_options = 0 |
int | missing_agent_option = 0 |
int | bad_circuit_id = 0 |
int | missing_circuit_id = 0 |
int | max_hop_count = 10 |
int | dhcp_max_agent_option_packet_length = DHCP_MTU_MIN |
enum { ... } | agent_relay_mode = forward_and_replace |
u_int16_t | local_port |
u_int16_t | remote_port |
struct server_list * | servers |
struct interface_info * | uplink = NULL |
char * | progname |
#define DHCRELAY_USAGE |
Definition at line 175 of file dhcrelay.c.
anonymous enum |
Enumerator | |
---|---|
forward_and_append | |
forward_and_replace | |
forward_untouched | |
discard |
Definition at line 99 of file dhcrelay.c.
void bootp | ( | struct packet * | packet | ) |
Definition at line 1847 of file dhcrelay.c.
int check_collection | ( | struct packet * | p, |
struct lease * | l, | ||
struct collection * | c | ||
) |
Definition at line 1862 of file dhcrelay.c.
Definition at line 1857 of file dhcrelay.c.
void dhcp | ( | struct packet * | packet | ) |
Definition at line 1852 of file dhcrelay.c.
isc_result_t dhcp_set_control_state | ( | control_object_state_t | oldstate, |
control_object_state_t | newstate | ||
) |
Definition at line 1877 of file dhcrelay.c.
Definition at line 1867 of file dhcrelay.c.
Definition at line 223 of file dhcrelay.c.
int parse_allow_deny | ( | struct option_cache ** | oc, |
struct parse * | p, | ||
int | i | ||
) |
Definition at line 1872 of file dhcrelay.c.
int add_agent_options = 0 |
Definition at line 72 of file dhcrelay.c.
int add_rfc3527_suboption = 0 |
Definition at line 73 of file dhcrelay.c.
int agent_option_errors = 0 |
Definition at line 75 of file dhcrelay.c.
enum { ... } agent_relay_mode |
int bad_circuit_id = 0 |
Definition at line 83 of file dhcrelay.c.
int bogus_agent_drops = 0 |
Definition at line 61 of file dhcrelay.c.
int bogus_giaddr_drops = 0 |
Definition at line 65 of file dhcrelay.c.
int client_packet_errors = 0 |
Definition at line 70 of file dhcrelay.c.
int client_packets_relayed = 0 |
Definition at line 67 of file dhcrelay.c.
int corrupt_agent_options = 0 |
Definition at line 79 of file dhcrelay.c.
TIME default_lease_time = 43200 |
Definition at line 44 of file dhcrelay.c.
int dhcp_max_agent_option_packet_length = DHCP_MTU_MIN |
Definition at line 95 of file dhcrelay.c.
int drop_agent_mismatches = 0 |
Definition at line 77 of file dhcrelay.c.
struct tree_cache* global_options[256] |
Definition at line 46 of file dhcrelay.c.
int lexchar |
Definition at line 52 of file dhcrelay.c.
int lexline |
Definition at line 51 of file dhcrelay.c.
u_int16_t local_port |
Definition at line 104 of file dhcrelay.c.
int max_hop_count = 10 |
Definition at line 87 of file dhcrelay.c.
TIME max_lease_time = 86400 |
Definition at line 45 of file dhcrelay.c.
int missing_agent_option = 0 |
Definition at line 81 of file dhcrelay.c.
int missing_circuit_id = 0 |
Definition at line 85 of file dhcrelay.c.
isc_boolean_t no_dhcrelay_pid = ISC_FALSE |
Definition at line 57 of file dhcrelay.c.
isc_boolean_t no_pid_file = ISC_FALSE |
Definition at line 59 of file dhcrelay.c.
const char* path_dhcrelay_pid = _PATH_DHCRELAY_PID |
Definition at line 56 of file dhcrelay.c.
char* progname |
Definition at line 156 of file dhcrelay.c.
u_int16_t remote_port |
Definition at line 105 of file dhcrelay.c.
struct option* requested_opts[2] |
Definition at line 48 of file dhcrelay.c.
int server_packet_errors = 0 |
Definition at line 68 of file dhcrelay.c.
int server_packets_relayed = 0 |
Definition at line 69 of file dhcrelay.c.
struct server_list * servers |
char* tlname |
Definition at line 54 of file dhcrelay.c.
char* token_line |
Definition at line 53 of file dhcrelay.c.
struct interface_info* uplink = NULL |
Definition at line 113 of file dhcrelay.c.