#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
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
/* The first network down event is generated by the IP stack\r
itself to initialise the network hardware, so do not call the\r
network down event the first time through. */\r
- if( xCallEventHook == pdFALSE )\r
+ if( xCallEventHook == pdTRUE )\r
{\r
vApplicationIPNetworkEventHook( eNetworkDown );\r
}\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