Commit for the 100219 release.
This commit is contained in:
parent
42b850f2b9
commit
04d40897cf
4 changed files with 15 additions and 13 deletions
|
@ -41,12 +41,8 @@
|
|||
/** Initialization function for the DHCP client. */
|
||||
void DHCPClientApp_Init(void)
|
||||
{
|
||||
/* Create an IP address to the broadcast network address */
|
||||
uip_ipaddr_t DHCPServerIPAddress;
|
||||
uip_ipaddr(&DHCPServerIPAddress, 255, 255, 255, 255);
|
||||
|
||||
/* Create a new UDP connection to the DHCP server port for the DHCP solicitation */
|
||||
struct uip_udp_conn* Connection = uip_udp_new(&DHCPServerIPAddress, HTONS(DHCPC_SERVER_PORT));
|
||||
struct uip_udp_conn* Connection = uip_udp_new(&uip_broadcast_addr, HTONS(DHCPC_SERVER_PORT));
|
||||
|
||||
/* If the connection was successfully created, bind it to the local DHCP client port */
|
||||
if (Connection != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue