diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-03-10 12:48:20 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-03-10 12:48:20 +0000 |
| commit | 51e27aced8a4681ae22873360a8970ad1d60a249 (patch) | |
| tree | cc807cb6af03604e0f019c181b96d31f39b08dcd /Projects/Webserver/Lib/DHCPClientApp.c | |
| parent | aa320b20c349f8c0888f47cc16c1b55862c93986 (diff) | |
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.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1162 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/Webserver/Lib/DHCPClientApp.c')
| -rw-r--r-- | Projects/Webserver/Lib/DHCPClientApp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Projects/Webserver/Lib/DHCPClientApp.c b/Projects/Webserver/Lib/DHCPClientApp.c index 01cbb7e2..1af90ad1 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)
|
