#include "dhcpd.h"
#include <syslog.h>
#include <signal.h>
#include <sys/time.h>
Go to the source code of this file.
|
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) |
|
◆ DHCRELAY_USAGE
Value:"Usage: dhcrelay [-d] [-q] [-a] [-D] [-A <length>] [-c <hops>] [-p <port>]\n" \
" [-pf <pid-file>] [--no-pid]\n" \
" [-m append|replace|forward|discard]\n" \
" [-i interface0 [ ... -i interfaceN]\n" \
" server0 [ ... serverN]\n\n"
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.
◆ bootp()
void bootp |
( |
struct packet * |
packet | ) |
|
◆ check_collection()
◆ classify()
◆ dhcp()
void dhcp |
( |
struct packet * |
packet | ) |
|
◆ dhcp_set_control_state()
◆ find_class()
isc_result_t find_class |
( |
struct class ** |
class, |
|
|
const char * |
c1, |
|
|
const char * |
c2, |
|
|
int |
i |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ parse_allow_deny()
◆ add_agent_options
int add_agent_options = 0 |
◆ agent_option_errors
int agent_option_errors = 0 |
◆ agent_relay_mode
enum { ... } agent_relay_mode |
◆ bad_circuit_id
◆ bogus_agent_drops
int bogus_agent_drops = 0 |
◆ bogus_giaddr_drops
int bogus_giaddr_drops = 0 |
◆ client_packet_errors
int client_packet_errors = 0 |
◆ client_packets_relayed
int client_packets_relayed = 0 |
◆ corrupt_agent_options
int corrupt_agent_options = 0 |
◆ default_lease_time
TIME default_lease_time = 43200 |
◆ dhcp_max_agent_option_packet_length
◆ drop_agent_mismatches
int drop_agent_mismatches = 0 |
◆ global_options
struct tree_cache* global_options[256] |
◆ lexchar
◆ lexline
◆ local_port
◆ max_hop_count
◆ max_lease_time
TIME max_lease_time = 86400 |
◆ missing_agent_option
int missing_agent_option = 0 |
◆ missing_circuit_id
int missing_circuit_id = 0 |
◆ no_dhcrelay_pid
isc_boolean_t no_dhcrelay_pid = ISC_FALSE |
◆ no_pid_file
isc_boolean_t no_pid_file = ISC_FALSE |
◆ path_dhcrelay_pid
◆ remote_port
◆ requested_opts
struct option* requested_opts[2] |
◆ server_packet_errors
int server_packet_errors = 0 |
◆ server_packets_relayed
int server_packets_relayed = 0 |
◆ servers
◆ tlname
◆ token_line