 |
io6Library
WIZnet Dual Stack TCP/IP Ethernet Controller Driver
|
Go to the documentation of this file.
62 #define MAX_DHCPV4_RETRY 2
63 #define DHCPV4_WAIT_TIME 10
67 #define DHCPV4_SERVER_PORT 67
68 #define DHCPV4_CLIENT_PORT 68
71 #define MAGIC_COOKIE 0x63825363
73 #define DCHPV4_HOST_NAME "WIZnet\0"
107 void reg_dhcpv4_cbfunc(
void(*ip_assign)(
void),
void(*ip_update)(
void),
void(*ip_conflict)(
void));
void getIPfromDHCPv4(uint8_t *ip)
uint32_t getDHCPv4Leasetime(void)
@ DHCP_IPV4_LEASED
Stand by.
void getSNfromDHCPv4(uint8_t *ip)
@ DHCP_IPV4_CHANGED
Change IP address by new ip from DHCP (if cbfunc == null, act as default default_ip_update)
void DHCPv4_time_handler(void)
@ DHCP_IPV4_ASSIGN
First Occupy IP from DHPC server (if cbfunc == null, act as default default_ip_assign)
void getGWfromDHCPv4(uint8_t *ip)
@ DHCPV4_FAILED
Processing Fail.
void getDNSfromDHCPv4(uint8_t *ip)
@ DHCPV4_STOPPED
Stop processing DHCP protocol.
void DHCPv4_init(uint8_t s, uint8_t *buf)
void reg_dhcpv4_cbfunc(void(*ip_assign)(void), void(*ip_update)(void), void(*ip_conflict)(void))
@ DHCPV4_RUNNING
Processing DHCP protocol.