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 | 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 |
| #define DHCRELAY_USAGE |
Definition at line 168 of file dhcrelay.c.
| anonymous enum |
| Enumerator | |
|---|---|
| forward_and_append | |
| forward_and_replace | |
| forward_untouched | |
| discard | |
Definition at line 97 of file dhcrelay.c.
| void bootp | ( | struct packet * | packet | ) |
Definition at line 1730 of file dhcrelay.c.
| int check_collection | ( | struct packet * | p, |
| struct lease * | l, | ||
| struct collection * | c | ||
| ) |
Definition at line 1745 of file dhcrelay.c.
Definition at line 1740 of file dhcrelay.c.
| void dhcp | ( | struct packet * | packet | ) |
Definition at line 1735 of file dhcrelay.c.
| isc_result_t dhcp_set_control_state | ( | control_object_state_t | oldstate, |
| control_object_state_t | newstate | ||
| ) |
Definition at line 1760 of file dhcrelay.c.
Definition at line 1750 of file dhcrelay.c.
Definition at line 181 of file dhcrelay.c.
| int parse_allow_deny | ( | struct option_cache ** | oc, |
| struct parse * | p, | ||
| int | i | ||
| ) |
Definition at line 1755 of file dhcrelay.c.
| int add_agent_options = 0 |
Definition at line 71 of file dhcrelay.c.
| int agent_option_errors = 0 |
Definition at line 73 of file dhcrelay.c.
| enum { ... } agent_relay_mode |
| int bad_circuit_id = 0 |
Definition at line 81 of file dhcrelay.c.
| int bogus_agent_drops = 0 |
Definition at line 60 of file dhcrelay.c.
| int bogus_giaddr_drops = 0 |
Definition at line 64 of file dhcrelay.c.
| int client_packet_errors = 0 |
Definition at line 69 of file dhcrelay.c.
| int client_packets_relayed = 0 |
Definition at line 66 of file dhcrelay.c.
| int corrupt_agent_options = 0 |
Definition at line 77 of file dhcrelay.c.
| TIME default_lease_time = 43200 |
Definition at line 43 of file dhcrelay.c.
| int dhcp_max_agent_option_packet_length = DHCP_MTU_MIN |
Definition at line 93 of file dhcrelay.c.
| int drop_agent_mismatches = 0 |
Definition at line 75 of file dhcrelay.c.
| struct tree_cache* global_options[256] |
Definition at line 45 of file dhcrelay.c.
| int lexchar |
Definition at line 51 of file dhcrelay.c.
| int lexline |
Definition at line 50 of file dhcrelay.c.
| u_int16_t local_port |
Definition at line 102 of file dhcrelay.c.
| int max_hop_count = 10 |
Definition at line 85 of file dhcrelay.c.
| TIME max_lease_time = 86400 |
Definition at line 44 of file dhcrelay.c.
| int missing_agent_option = 0 |
Definition at line 79 of file dhcrelay.c.
| int missing_circuit_id = 0 |
Definition at line 83 of file dhcrelay.c.
| isc_boolean_t no_dhcrelay_pid = ISC_FALSE |
Definition at line 56 of file dhcrelay.c.
| isc_boolean_t no_pid_file = ISC_FALSE |
Definition at line 58 of file dhcrelay.c.
| const char* path_dhcrelay_pid = _PATH_DHCRELAY_PID |
Definition at line 55 of file dhcrelay.c.
| u_int16_t remote_port |
Definition at line 103 of file dhcrelay.c.
| struct option* requested_opts[2] |
Definition at line 47 of file dhcrelay.c.
| int server_packet_errors = 0 |
Definition at line 67 of file dhcrelay.c.
| int server_packets_relayed = 0 |
Definition at line 68 of file dhcrelay.c.
| struct server_list * servers |
| char* tlname |
Definition at line 53 of file dhcrelay.c.
| char* token_line |
Definition at line 52 of file dhcrelay.c.