|
ReactOS 0.4.16-dev-2613-g9533ad7
|
#include <stdarg.h>#include <windef.h>#include <winbase.h>#include <winreg.h>#include <winnls.h>#include <ndk/kefuncs.h>#include <ndk/rtlfuncs.h>#include <dhcpcsdk.h>#include <rpc.h>#include <dhcpcsvc_c.h>#include <dhcpcsvc_s.h>#include "debug.h"#include "dhcpd.h"

Go to the source code of this file.
Classes | |
| struct | _ALTERNATE_CONFIGURATION |
| struct | _DHCP_ADAPTER |
Macros | |
| #define | WIN32_NO_STATUS |
| #define | _INC_WINDOWS |
| #define | COM_NO_WINDOWS_H |
| #define | NTOS_MODE_USER |
| #define | IFNAMSIZ MAX_INTERFACE_NAME_LEN |
| #define | DHCP_DISCOVER_INTERVAL 5 |
| #define | DHCP_REBOOT_TIMEOUT 10 |
| #define | DHCP_PANIC_TIMEOUT 20 |
| #define | DHCP_BACKOFF_MAX 300 |
| #define | DHCP_DEFAULT_LEASE_TIME 43200 /* 12 hours */ |
| #define | _PATH_DHCLIENT_PID "\\systemroot\\system32\\drivers\\etc\\dhclient.pid" |
| #define | _SSIZE_T_DEFINED |
| #define | TIME uintTIME |
| #define | INLINE inline |
| #define | PROTO(x) x |
| #define | random rand |
| #define | srandom srand |
Typedefs | |
| typedef void * | VOIDPTR |
| typedef unsigned char | u_int8_t |
| typedef unsigned short | u_int16_t |
| typedef unsigned int | u_int32_t |
| typedef char * | caddr_t |
| typedef int | ssize_t |
| typedef u_int32_t | uintTIME |
| typedef void handler_t | PROTO((struct packet *)) |
| typedef struct _ALTERNATE_CONFIGURATION | ALTERNATE_CONFIGURATION |
| typedef struct _ALTERNATE_CONFIGURATION * | PALTERNATE_CONFIGURATION |
| typedef struct _DHCP_ADAPTER | DHCP_ADAPTER |
| typedef struct _DHCP_ADAPTER * | PDHCP_ADAPTER |
Functions | |
| int | init_client (void) |
| void | stop_client (void) |
| void | AdapterInit (VOID) |
| HANDLE | StartAdapterDiscovery (HANDLE hStopEvent) |
| void | AdapterStop (VOID) |
| HKEY | FindAdapterKey (PDHCP_ADAPTER Adapter) |
| DWORD | LoadAlternateConfiguration (PDHCP_ADAPTER Adapter, HKEY AdapterKey) |
| PDHCP_ADAPTER | AdapterGetFirst (VOID) |
| PDHCP_ADAPTER | AdapterGetNext (PDHCP_ADAPTER) |
| PDHCP_ADAPTER | AdapterFindIndex (unsigned int AdapterIndex) |
| PDHCP_ADAPTER | AdapterFindName (const WCHAR *name) |
| PDHCP_ADAPTER | AdapterFindInfo (struct interface_info *info) |
| PDHCP_ADAPTER | AdapterFindByHardwareAddress (u_int8_t *haddr, u_int8_t hlen) |
| HANDLE | InitRpc (VOID) |
| VOID | ShutdownRpc (VOID) |
| VOID | ApiInit (VOID) |
| VOID | ApiFree (VOID) |
| VOID | ApiLock (VOID) |
| VOID | ApiUnlock (VOID) |
| int | inet_aton (const char *s, struct in_addr *addr) |
| int | warn (char *format,...) |
| #define _PATH_DHCLIENT_PID "\\systemroot\\system32\\drivers\\etc\\dhclient.pid" |
| #define IFNAMSIZ MAX_INTERFACE_NAME_LEN |
| typedef struct _DHCP_ADAPTER DHCP_ADAPTER |
| typedef struct _DHCP_ADAPTER * PDHCP_ADAPTER |
| PDHCP_ADAPTER AdapterFindByHardwareAddress | ( | u_int8_t * | haddr, |
| u_int8_t | hlen | ||
| ) |
Definition at line 652 of file adapter.c.
Referenced by AdapterDiscoveryThread(), and got_one().
| PDHCP_ADAPTER AdapterFindIndex | ( | unsigned int | AdapterIndex | ) |
Definition at line 608 of file adapter.c.
Referenced by Server_StaticRefreshParams().
| PDHCP_ADAPTER AdapterFindInfo | ( | struct interface_info * | info | ) |
Definition at line 638 of file adapter.c.
Referenced by bind_lease(), got_one(), send_request(), state_panic(), and unbind_lease().
| PDHCP_ADAPTER AdapterFindName | ( | const WCHAR * | name | ) |
Definition at line 622 of file adapter.c.
Referenced by Server_AcquireParameters(), Server_EnableDhcp(), Server_FallbackRefreshParams(), and Server_ReleaseParameters().
| PDHCP_ADAPTER AdapterGetFirst | ( | VOID | ) |
| PDHCP_ADAPTER AdapterGetNext | ( | PDHCP_ADAPTER | This | ) |
| HKEY FindAdapterKey | ( | PDHCP_ADAPTER | Adapter | ) |
Definition at line 105 of file adapter.c.
Referenced by PrepareAdapterForService(), and Server_FallbackRefreshParams().
Definition at line 111 of file dhclient.c.
Referenced by ServiceMain().
Definition at line 65 of file api.c.
Referenced by ServiceMain().
| DWORD LoadAlternateConfiguration | ( | PDHCP_ADAPTER | Adapter, |
| HKEY | AdapterKey | ||
| ) |
Definition at line 154 of file adapter.c.
Referenced by PrepareAdapterForService(), and Server_FallbackRefreshParams().
Definition at line 71 of file api.c.
Referenced by ServiceMain().
Definition at line 129 of file dhclient.c.
Referenced by ServiceMain().