#define DHCP_CLIENTPORT 68
#define MAX_DHCP_MSGSIZE 576
#define MIN_DHCP_MSGSIZE 300
#define MAX_DHCP_BUFSIZE 1728
#define MIN_DHCP_WAIT 4000
#define MAX_DHCP_WAIT 64000
#define MAX_DCHP_RETRIES 3
#define MAX_DCHP_RELEASE_RETRIES 0
#define DHCP_DEFAULT_LEASE 43200
#define MAX_DHCP_NAPTIME 4294967
#define NUT_THREAD_DHCPSTACK 288
#define DHCP_DISCOVER 1
#define DHCP_OFFER 2
#define DHCP_REQUEST 3
#define DHCP_DECLINE 4
#define DHCP_ACK 5
#define DHCP_NAK 6
#define DHCP_RELEASE 7
#define DHCP_INFORM 8
#define DHCPOPT_PAD 0
#define DHCPOPT_NETMASK 1
#define DHCPOPT_GATEWAY 3
#define DHCPOPT_DNS 6
#define DHCPOPT_HOSTNAME 12
#define DHCPOPT_DOMAIN 15
#define DHCPOPT_BROADCAST 28
#define DHCPOPT_REQESTIP 50
#define DHCPOPT_LEASETIME 51
#define DHCPOPT_MSGTYPE 53
#define DHCPOPT_SID 54
#define DHCPOPT_PARAMREQUEST 55
#define DHCPOPT_MAXMSGSIZE 57
#define DHCPOPT_RENEWALTIME 58
#define DHCPOPT_REBINDTIME 59
#define DHCPOPT_END 255
See: | Type struct bootp |
struct bootp | |
{ | |
uint8_t bp_op; | |
uint8_t bp_htype; | |
uint8_t bp_hlen; | |
uint8_t bp_hops; | |
uint32_t bp_xid; | |
uint16_t bp_secs; | |
uint16_t bp_flags; | |
uint32_t bp_ciaddr; | |
uint32_t bp_yiaddr; | |
uint32_t bp_siaddr; | |
uint32_t bp_giaddr; | |
uint8_t bp_chaddr[16]; | |
char bp_sname[64]; | |
char bp_file[128]; | |
uint8_t bp_options[312]; | |
} |
See: | Type struct dyn_cfg |
struct dyn_cfg | |
{ | |
uint8_t dyn_msgtyp; | |
uint32_t dyn_yiaddr; | |
uint32_t dyn_netmask; | |
uint32_t dyn_broadcast; | |
uint32_t dyn_gateway; | |
uint32_t dyn_pdns; | |
uint32_t dyn_sdns; | |
uint32_t dyn_sid; | |
uint32_t dyn_renewalTime; | |
uint32_t dyn_rebindTime; | |
uint32_t dyn_leaseTime; | |
uint8_t* dyn_hostname; | |
uint8_t* dyn_domain; | |
} |
Used in: | NutDhcpClient() | |
NutDhcpIfConfig() |
dhcpThread
static HANDLE dhcpThread
Used in: | DhcpKick() |
dhcpState
static uint8_t dhcpState
Used in: | DhcpKick() | |
NutDhcpClient() | ||
NutDhcpIfConfig() | ||
NutDhcpInform() | ||
NutDhcpIsConfigured() | ||
NutDhcpRelease() | ||
NutDhcpStatus() |
dhcpError
static int dhcpError
Used in: | DhcpKick() | |
DhcpRecvMessage() | ||
DhcpSendMessage() | ||
NutDhcpClient() | ||
NutDhcpError() | ||
NutDhcpIfConfig() | ||
NutDhcpInform() | ||
NutDhcpRelease() |
dhcpWake
static HANDLE dhcpWake
Used in: | DhcpKick() | |
NutDhcpClient() |
dhcpDone
static HANDLE dhcpDone
Used in: | DhcpKick() | |
NutDhcpClient() |
dhcpApiTimeout
static uint32_t dhcpApiTimeout
Used in: | DhcpKick() | |
NutDhcpClient() |
dhcpApiStart
static uint32_t dhcpApiStart
Used in: | DhcpKick() | |
NutDhcpClient() |
Prototyped in: | nut/include/pro/dhcp.h | |
References Variables: | dhcpError | nut/pro/dhcpc.c |
Prototyped in: | nut/include/pro/dhcp.h | |
Calls: | DhcpKick() | nut/pro/dhcpc.c |
References Variables: | dhcpError | nut/pro/dhcpc.c |
dhcpState | nut/pro/dhcpc.c |
Prototyped in: | nut/include/pro/dhcp.h | |
References Variables: | dhcpState | nut/pro/dhcpc.c |
Prototyped in: | nut/include/pro/dhcp.h | |
Calls: | DhcpKick() | nut/pro/dhcpc.c |
Called by: | NutDhcpIfConfig() | nut/pro/dhcpc.c |
References Variables: | dhcpError | nut/pro/dhcpc.c |
dhcpState | nut/pro/dhcpc.c |
Prototyped in: | nut/include/pro/dhcp.h | |
References Variables: | dhcpState | nut/pro/dhcpc.c |
Calls: | ParseReply() | nut/pro/dhcpc.c |
ReleaseDynCfg() | nut/pro/dhcpc.c | |
Called by: | NutDhcpClient() | nut/pro/dhcpc.c |
Called by: | DhcpPrepHeader() | nut/pro/dhcpc.c |
Calls: | memcpy() | nut/c/string/memcpy.c |
Called by: | DhcpBroadcastDiscover() | nut/pro/dhcpc.c |
DhcpSendInform() | nut/pro/dhcpc.c | |
DhcpSendRelease() | nut/pro/dhcpc.c | |
DhcpSendRequest() | nut/pro/dhcpc.c |
Called by: | DhcpBroadcastDiscover() | nut/pro/dhcpc.c |
DhcpSendInform() | nut/pro/dhcpc.c | |
DhcpSendRequest() | nut/pro/dhcpc.c |
Calls: | __byte_swap2() | nut/boot/appload/utils.c |
memcpy() | nut/c/string/memcpy.c | |
Called by: | DhcpBroadcastDiscover() | nut/pro/dhcpc.c |
DhcpSendInform() | nut/pro/dhcpc.c |
Calls: | DhcpSendRequest() | nut/pro/dhcpc.c |
Called by: | NutDhcpClient() | nut/pro/dhcpc.c |
Calls: | NutGetMillis() | nut/os/timer.c |
NutUdpReceiveFrom() | nut/net/udpsock.c | |
Called by: | NutDhcpClient() | nut/pro/dhcpc.c |
References Variables: | dhcpError | nut/pro/dhcpc.c |
Calls: | NutUdpSendTo() | nut/net/udpsock.c |
Called by: | DhcpBroadcastDiscover() | nut/pro/dhcpc.c |
DhcpSendInform() | nut/pro/dhcpc.c | |
DhcpSendRelease() | nut/pro/dhcpc.c | |
DhcpSendRequest() | nut/pro/dhcpc.c | |
References Variables: | dhcpError | nut/pro/dhcpc.c |
Calls: | DhcpAddOption() | nut/pro/dhcpc.c |
DhcpPrepHeader() | nut/pro/dhcpc.c | |
DhcpSendMessage() | nut/pro/dhcpc.c | |
Called by: | NutDhcpClient() | nut/pro/dhcpc.c |
Calls: | free() | nut/crt/malloc.c |
Called by: | CheckOffer() | nut/pro/dhcpc.c |
NutDhcpClient() | nut/pro/dhcpc.c | |
ParseReply() | nut/pro/dhcpc.c |
Calls: | free() | nut/crt/malloc.c |
malloc() | nut/crt/malloc.c | |
memcpy() | nut/c/string/memcpy.c | |
Called by: | ParseReply() | nut/pro/dhcpc.c |