aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Lib/DHCPClientApp.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-03-10 12:48:20 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-03-10 12:48:20 +0000
commitaca7863350509a1f390eda93ac0150378d8cd16c (patch)
treecc807cb6af03604e0f019c181b96d31f39b08dcd /Projects/Webserver/Lib/DHCPClientApp.c
parent92418433a505cdf1db0162cea2bdb22a99014ebb (diff)
downloadlufa-aca7863350509a1f390eda93ac0150378d8cd16c.tar.gz
lufa-aca7863350509a1f390eda93ac0150378d8cd16c.tar.bz2
lufa-aca7863350509a1f390eda93ac0150378d8cd16c.zip
Added ENABLE_TELNET_SERVER compile time option to the Webserver project to disable the TELNET server if desired.
Change over static strings in the Webserver project to use PROGMEM where possible.
Diffstat (limited to 'Projects/Webserver/Lib/DHCPClientApp.c')
-rw-r--r--Projects/Webserver/Lib/DHCPClientApp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Projects/Webserver/Lib/DHCPClientApp.c b/Projects/Webserver/Lib/DHCPClientApp.c
index 01cbb7e26..1af90ad19 100644
--- a/Projects/Webserver/Lib/DHCPClientApp.c
+++ b/Projects/Webserver/Lib/DHCPClientApp.c
@@ -28,16 +28,17 @@
this software.
*/
+#if defined(ENABLE_DHCP_CLIENT) || defined(__DOXYGEN__)
+
/** \file
*
* DHCP Client Application. When connected to the uIP stack, this will retrieve IP configuration settings from the
* DHCP server on the network.
*/
+#define INCLUDE_FROM_DHCPCLIENTAPP_C
#include "DHCPClientApp.h"
-#if defined(ENABLE_DHCP_CLIENT) || defined(__DOXYGEN__)
-
/** Initialization function for the DHCP client. */
void DHCPClientApp_Init(void)
{
@@ -175,7 +176,7 @@ void DHCPClientApp_Callback(void)
*
* \return Size in bytes of the created DHCP packet
*/
-uint16_t DHCPClientApp_FillDHCPHeader(DHCP_Header_t* DHCPHeader, uint8_t DHCPMessageType, uip_udp_appstate_t* AppState)
+static uint16_t DHCPClientApp_FillDHCPHeader(DHCP_Header_t* DHCPHeader, uint8_t DHCPMessageType, uip_udp_appstate_t* AppState)
{
/* Erase existing packet data so that we start will all 0x00 DHCP header data */
memset(DHCPHeader, 0, sizeof(DHCP_Header_t));
@@ -214,7 +215,7 @@ uint16_t DHCPClientApp_FillDHCPHeader(DHCP_Header_t* DHCPHeader, uint8_t DHCPMes
*
* \return Number of bytes added to the DHCP packet
*/
-uint8_t DHCPClientApp_SetOption(uint8_t* DHCPOptionList, uint8_t Option, uint8_t DataLen, void* OptionData)
+static uint8_t DHCPClientApp_SetOption(uint8_t* DHCPOptionList, uint8_t Option, uint8_t DataLen, void* OptionData)
{
/* Skip through the DHCP options list until the terminator option is found */
while (*DHCPOptionList != DHCP_OPTION_END)
@@ -238,7 +239,7 @@ uint8_t DHCPClientApp_SetOption(uint8_t* DHCPOptionList, uint8_t Option, uint8_t
*
* \return Boolean true if the option was found in the DHCP packet's options list, false otherwise
*/
-bool DHCPClientApp_GetOption(uint8_t* DHCPOptionList, uint8_t Option, void* Destination)
+static bool DHCPClientApp_GetOption(uint8_t* DHCPOptionList, uint8_t Option, void* Destination)
{
/* Look through the incoming DHCP packet's options list for the requested option */
while (*DHCPOptionList != DHCP_OPTION_END)