/*\r
- * FreeRTOS+UDP V1.0.0 (C) 2013 Real Time Engineers ltd.\r
+ * FreeRTOS+UDP V1.0.3 (C) 2014 Real Time Engineers ltd.\r
+ * All rights reserved\r
*\r
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license\r
* terms are different to the FreeRTOS license terms.\r
*\r
- * FreeRTOS+UDP uses a dual license model that allows the software to be used \r
- * under a standard GPL open source license, or a commercial license. The \r
- * standard GPL license (unlike the modified GPL license under which FreeRTOS \r
- * itself is distributed) requires that all software statically linked with \r
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms. \r
+ * FreeRTOS+UDP uses a dual license model that allows the software to be used\r
+ * under a standard GPL open source license, or a commercial license. The\r
+ * standard GPL license (unlike the modified GPL license under which FreeRTOS\r
+ * itself is distributed) requires that all software statically linked with\r
+ * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.\r
* Details of both license options follow:\r
*\r
* - Open source licensing -\r
#define dhcpCLIENT_PORT 0x4400\r
#define dhcpSERVER_PORT 0x4300\r
#define dhcpCOOKIE 0x63538263\r
+ #define dhcpBROADCAST 0x0080\r
#else\r
#define dhcpCLIENT_PORT 0x0044\r
#define dhcpSERVER_PORT 0x0043\r
#define dhcpCOOKIE 0x63825363\r
+ #define dhcpBROADCAST 0x8000\r
#endif /* ipconfigBYTE_ORDER */\r
\r
#include "pack_struct_start.h"\r
/* Static configuration is being used, so the network is now up. */\r
#if ipconfigFREERTOS_PLUS_NABTO == 1\r
{\r
- vStartNabtoTask();\r
+ /* Return value is used in configASSERT() inside the\r
+ function. */\r
+ ( void ) xStartNabtoTask();\r
}\r
#endif /* ipconfigFREERTOS_PLUS_NABTO */\r
\r
}\r
#endif\r
\r
- /* Static configuration is being used, so the network is now up. */\r
+ /* Static configuration is being used, so the network is now\r
+ up. */\r
#if ipconfigFREERTOS_PLUS_NABTO == 1\r
{\r
- vStartNabtoTask();\r
+ /* Return value is used in configASSERT() inside the\r
+ function. */\r
+ ( void ) xStartNabtoTask();\r
}\r
#endif /* ipconfigFREERTOS_PLUS_NABTO */\r
\r
\r
if( xDHCPTimer == NULL )\r
{\r
- xDHCPTimer = xTimerCreate( ( const signed char * const ) "DHCP", dhcpINITIAL_TIMER_PERIOD, pdTRUE, ( void * ) eDHCPEvent, vIPFunctionsTimerCallback );\r
+ xDHCPTimer = xTimerCreate( "DHCP", dhcpINITIAL_TIMER_PERIOD, pdTRUE, ( void * ) eDHCPEvent, vIPFunctionsTimerCallback );\r
configASSERT( xDHCPTimer );\r
xTimerStart( xDHCPTimer, portMAX_DELAY );\r
}\r
pxDHCPMessage->ucAddressType = dhcpADDRESS_TYPE_ETHERNET;\r
pxDHCPMessage->ucAddressLength = dhcpETHERNET_ADDRESS_LENGTH;\r
pxDHCPMessage->ulTransactionID = ulTransactionId;\r
- pxDHCPMessage->ulYourIPAddress_yiaddr = ulOfferedIPAddress;\r
pxDHCPMessage->ulDHCPCookie = dhcpCOOKIE;\r
+ pxDHCPMessage->usFlags = dhcpBROADCAST;\r
memcpy( ( void * ) &( pxDHCPMessage->ucClientHardwareAddress[ 0 ] ), ( void * ) pxMACAddress, sizeof( xMACAddress_t ) );\r
\r
/* Copy in the const part of the options options. */\r