diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-19 00:07:22 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-19 00:07:22 +0000 |
commit | 04d40897cf98469b39f1d97208a51deb65f70bc5 (patch) | |
tree | 0c489f8ee76bc929fbff2afe99149def8ca325fd /Projects/Webserver/Lib/DHCPClientApp.c | |
parent | 42b850f2b94941066c36d85b4878d6a348260b4d (diff) | |
download | lufa-04d40897cf98469b39f1d97208a51deb65f70bc5.tar.gz lufa-04d40897cf98469b39f1d97208a51deb65f70bc5.tar.bz2 lufa-04d40897cf98469b39f1d97208a51deb65f70bc5.zip |
Commit for the 100219 release.
Diffstat (limited to 'Projects/Webserver/Lib/DHCPClientApp.c')
-rw-r--r-- | Projects/Webserver/Lib/DHCPClientApp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Projects/Webserver/Lib/DHCPClientApp.c b/Projects/Webserver/Lib/DHCPClientApp.c index 09bae7368..cf512734e 100644 --- a/Projects/Webserver/Lib/DHCPClientApp.c +++ b/Projects/Webserver/Lib/DHCPClientApp.c @@ -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)
|