Defines |
| #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)) |
Functions |
| void | usage (void) |
| int | check_option (struct client_lease *l, int option) |
| int | ipv4addrs (char *buf) |
| int | res_hnok (const char *dn) |
| char * | option_as_string (unsigned int code, unsigned char *data, int len) |
| int | fork_privchld (int, int) |
| int | check_arp (struct interface_info *ip, struct client_lease *lp) |
| static VOID | UpdateServiceStatus (DWORD dwState) |
| static DWORD WINAPI | ServiceControlHandler (DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext) |
| VOID NTAPI | ServiceMain (DWORD argc, LPWSTR *argv) |
| void | state_reboot (void *ipp) |
| void | state_init (void *ipp) |
| void | state_selecting (void *ipp) |
| void | dhcpack (struct packet *packet) |
| void | set_name_servers (PDHCP_ADAPTER Adapter, struct client_lease *new_lease) |
| void | setup_adapter (PDHCP_ADAPTER Adapter, struct client_lease *new_lease) |
| void | bind_lease (struct interface_info *ip) |
| void | state_bound (void *ipp) |
| void | bootp (struct packet *packet) |
| void | dhcp (struct packet *packet) |
| void | dhcpoffer (struct packet *packet) |
| struct client_lease * | packet_to_lease (struct packet *packet) |
| void | dhcpnak (struct packet *packet) |
| void | send_discover (void *ipp) |
| void | state_panic (void *ipp) |
| void | send_request (void *ipp) |
| void | send_decline (void *ipp) |
| void | make_discover (struct interface_info *ip, struct client_lease *lease) |
| void | make_request (struct interface_info *ip, struct client_lease *lease) |
| void | make_decline (struct interface_info *ip, struct client_lease *lease) |
| void | free_client_lease (struct client_lease *lease) |
| void | rewrite_client_leases (struct interface_info *ifi) |
| void | write_client_lease (struct interface_info *ip, struct client_lease *lease, int rewrite) |
| void | priv_script_init (struct interface_info *ip, char *reason, char *medium) |
| void | priv_script_write_params (struct interface_info *ip, char *prefix, struct client_lease *lease) |
| int | dhcp_option_ev_name (char *buf, size_t buflen, struct dhcp_option *option) |
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 |
| static WCHAR | ServiceName [] = "DHCP" |
| SERVICE_STATUS_HANDLE | ServiceStatusHandle = 0 |
| SERVICE_STATUS | ServiceStatus |
| FILE * | leaseFile |