ReactOS 0.4.16-dev-306-g647d351
|
#include <rosdhcp.h>
Go to the source code of this file.
Macros | |
#define | PERIOD 0x2e |
#define | hyphenchar(c) ((c) == 0x2d) |
#define | bslashchar(c) ((c) == 0x5c) |
#define | periodchar(c) ((c) == PERIOD) |
#define | asterchar(c) ((c) == 0x2a) |
#define | alphachar(c) |
#define | digitchar(c) ((c) >= 0x30 && (c) <= 0x39) |
#define | borderchar(c) (alphachar(c) || digitchar(c)) |
#define | middlechar(c) (borderchar(c) || hyphenchar(c)) |
#define | domainchar(c) ((c) > 0x20 && (c) < 0x7f) |
#define | ASSERT_STATE(state_is, state_shouldbe) {} |
#define | TIME_MAX 2147483647 |
#define | ADVANCE(x, n) (x += ROUNDUP((n)->sa_len)) |
Variables | |
unsigned long | debug_trace_level = 0 |
char * | path_dhclient_conf = _PATH_DHCLIENT_CONF |
char * | path_dhclient_db = NULL |
int | log_perror = 1 |
int | privfd |
struct iaddr | iaddr_broadcast = { 4, { 255, 255, 255, 255 } } |
struct in_addr | inaddr_any |
struct sockaddr_in | sockaddr_broadcast |
int | log_priority |
int | no_daemon |
int | unknown_ok = 1 |
int | routefd |
time_t | scripttime |
FILE * | leaseFile |
Definition at line 63 of file dhclient.c.
#define ASSERT_STATE | ( | state_is, | |
state_shouldbe | |||
) | {} |
Definition at line 88 of file dhclient.c.
Definition at line 62 of file dhclient.c.
Definition at line 60 of file dhclient.c.
Definition at line 59 of file dhclient.c.
#define middlechar | ( | c | ) | (borderchar(c) || hyphenchar(c)) |
Definition at line 68 of file dhclient.c.
#define PERIOD 0x2e |
Definition at line 58 of file dhclient.c.
#define TIME_MAX 2147483647 |
Definition at line 90 of file dhclient.c.
void bind_lease | ( | struct interface_info * | ip | ) |
Definition at line 580 of file dhclient.c.
Referenced by dhcpack(), and state_selecting().
Definition at line 654 of file dhclient.c.
Referenced by do_packet().
int check_arp | ( | struct interface_info * | ip, |
struct client_lease * | lp | ||
) |
Definition at line 137 of file dhclient.c.
Referenced by dhcpoffer(), and state_selecting().
int check_option | ( | struct client_lease * | l, |
int | option | ||
) |
Definition at line 1813 of file dhclient.c.
Referenced by packet_to_lease().
Definition at line 674 of file dhclient.c.
Referenced by do_packet(), and START_TEST().
int dhcp_option_ev_name | ( | char * | buf, |
size_t | buflen, | ||
struct dhcp_option * | option | ||
) |
Definition at line 1767 of file dhclient.c.
Referenced by priv_script_write_params().
Definition at line 316 of file dhclient.c.
Referenced by dhcp().
Definition at line 915 of file dhclient.c.
Referenced by dhcp().
Definition at line 710 of file dhclient.c.
void free_client_lease | ( | struct client_lease * | lease | ) |
Definition at line 1515 of file dhclient.c.
Referenced by bind_lease(), dhcpnak(), packet_to_lease(), and state_selecting().
Definition at line 111 of file dhclient.c.
Referenced by ServiceMain().
Definition at line 1937 of file dhclient.c.
Referenced by check_option().
void make_decline | ( | struct interface_info * | ip, |
struct client_lease * | lease | ||
) |
Definition at line 1441 of file dhclient.c.
void make_discover | ( | struct interface_info * | ip, |
struct client_lease * | lease | ||
) |
Definition at line 1256 of file dhclient.c.
Referenced by state_init().
void make_request | ( | struct interface_info * | ip, |
struct client_lease * | lease | ||
) |
Definition at line 1339 of file dhclient.c.
Referenced by state_bound(), state_reboot(), and state_selecting().
Definition at line 1957 of file dhclient.c.
Referenced by check_option().
struct client_lease * packet_to_lease | ( | struct packet * | packet | ) |
Definition at line 829 of file dhclient.c.
Referenced by dhcpack(), and dhcpoffer().
void priv_script_init | ( | struct interface_info * | ip, |
char * | reason, | ||
char * | medium | ||
) |
Definition at line 1621 of file dhclient.c.
void priv_script_write_params | ( | struct interface_info * | ip, |
char * | prefix, | ||
struct client_lease * | lease | ||
) |
Definition at line 1629 of file dhclient.c.
Definition at line 1908 of file dhclient.c.
Referenced by check_option(), and packet_to_lease().
void rewrite_client_leases | ( | struct interface_info * | ifi | ) |
Definition at line 1533 of file dhclient.c.
Referenced by write_client_lease().
Definition at line 1242 of file dhclient.c.
Definition at line 955 of file dhclient.c.
Referenced by dhcpoffer(), send_discover(), state_init(), and state_selecting().
void send_request | ( | void * | ipp | ) |
Definition at line 1113 of file dhclient.c.
void set_domain | ( | PDHCP_ADAPTER | Adapter, |
struct client_lease * | new_lease | ||
) |
Definition at line 443 of file dhclient.c.
Referenced by bind_lease().
void set_name_servers | ( | PDHCP_ADAPTER | Adapter, |
struct client_lease * | new_lease | ||
) |
Definition at line 398 of file dhclient.c.
Referenced by bind_lease().
void setup_adapter | ( | PDHCP_ADAPTER | Adapter, |
struct client_lease * | new_lease | ||
) |
Definition at line 492 of file dhclient.c.
Referenced by bind_lease().
Definition at line 628 of file dhclient.c.
Referenced by bind_lease().
Definition at line 210 of file dhclient.c.
Referenced by AdapterDiscoveryThread(), device_init(), dhcpnak(), send_request(), state_reboot(), state_selecting(), wined3d_cs_create(), wined3d_cs_exec_reset_state(), and wined3d_device_reset().
Definition at line 1061 of file dhclient.c.
Referenced by send_discover().
Definition at line 172 of file dhclient.c.
Referenced by DSLeaseIpAddress(), and DSRenewIpAddressLease().
Definition at line 235 of file dhclient.c.
Referenced by dhcpoffer(), and state_selecting().
Definition at line 129 of file dhclient.c.
Referenced by ServiceMain().
Definition at line 231 of file vertexdeclaration.c.
Referenced by append_decl_element(), main(), parse_switches(), printh(), and select_transform().
void write_client_lease | ( | struct interface_info * | ip, |
struct client_lease * | lease, | ||
int | rewrite | ||
) |
Definition at line 1555 of file dhclient.c.
Referenced by rewrite_client_leases().
Definition at line 71 of file dhclient.c.
Definition at line 80 of file dhclient.c.
Referenced by state_bound(), state_init(), state_reboot(), and state_selecting().
Definition at line 81 of file dhclient.c.
Referenced by init_client(), send_decline(), and send_discover().
FILE* leaseFile |
Definition at line 1530 of file dhclient.c.
Referenced by rewrite_client_leases(), and write_client_lease().
int log_perror = 1 |
Definition at line 76 of file dhclient.c.
int log_priority |
Definition at line 92 of file dhclient.c.
int no_daemon |
Definition at line 93 of file dhclient.c.
char* path_dhclient_conf = _PATH_DHCLIENT_CONF |
Definition at line 73 of file dhclient.c.
Definition at line 74 of file dhclient.c.
Referenced by rewrite_client_leases(), and write_client_lease().
int privfd |
Definition at line 77 of file dhclient.c.
int routefd |
Definition at line 95 of file dhclient.c.
time_t scripttime |
Definition at line 107 of file dhclient.c.
struct sockaddr_in sockaddr_broadcast |
Definition at line 82 of file dhclient.c.
Referenced by init_client(), send_decline(), and send_discover().
int unknown_ok = 1 |
Definition at line 94 of file dhclient.c.
Referenced by check_option().