aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Lib/DHCPServerApp.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-05-23 07:13:45 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-05-23 07:13:45 +0000
commit4343e68779751605274e80336b56a2793f7482f0 (patch)
tree40a94ce9465ee820fd175b1a683cca4ba1b14741 /Projects/Webserver/Lib/DHCPServerApp.h
parent3cba88e4c05d6a3c25ffa9c7185d41a84b7f72b1 (diff)
downloadlufa-4343e68779751605274e80336b56a2793f7482f0.tar.gz
lufa-4343e68779751605274e80336b56a2793f7482f0.tar.bz2
lufa-4343e68779751605274e80336b56a2793f7482f0.zip
Correct errors in the DHCP Server application in the Webserver project, that was causing random server restarts and/or incorrectly allocated IP addresses.
Diffstat (limited to 'Projects/Webserver/Lib/DHCPServerApp.h')
-rw-r--r--Projects/Webserver/Lib/DHCPServerApp.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Projects/Webserver/Lib/DHCPServerApp.h b/Projects/Webserver/Lib/DHCPServerApp.h
index e70869588..9d91d6be8 100644
--- a/Projects/Webserver/Lib/DHCPServerApp.h
+++ b/Projects/Webserver/Lib/DHCPServerApp.h
@@ -51,12 +51,13 @@
#if defined(INCLUDE_FROM_DHCPSERVERAPP_C)
static uint16_t DHCPServerApp_FillDHCPHeader(DHCP_Header_t* const DHCPHeader,
const uint8_t DHCPMessageType,
- struct uip_eth_addr* ClientHardwareAddress,
- uint32_t TransactionID);
- static bool DHCPServerApp_CheckIfIPLeased(uip_ipaddr_t* IPAddress);
- static void DHCPServerApp_GetUnleasedIP(uip_ipaddr_t* NewIPAddress);
- static void DHCPServerApp_LeaseIP(uip_ipaddr_t* IPAddress);
- static void DHCPServerApp_UnleaseIP(uip_ipaddr_t* IPAddress);
+ const struct uip_eth_addr* const ClientHardwareAddress,
+ const uip_ipaddr_t* const PreferredClientIP,
+ const uint32_t TransactionID);
+ static bool DHCPServerApp_CheckIfIPLeased(const uip_ipaddr_t* const IPAddress);
+ static void DHCPServerApp_GetUnleasedIP(uip_ipaddr_t* const NewIPAddress);
+ static void DHCPServerApp_LeaseIP(const uip_ipaddr_t* const IPAddress);
+ static void DHCPServerApp_UnleaseIP(const uip_ipaddr_t* const IPAddress);
#endif
#endif