/*\r
- * FreeRTOS+UDP V1.0.0 (C) 2013 Real Time Engineers ltd.\r
+ * FreeRTOS+UDP V1.0.2 (C) 2013 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
#else\r
{\r
*ipLOCAL_IP_ADDRESS_POINTER = xNetworkAddressing.ulDefaultIPAddress;\r
+ \r
+ /* Ensure the gateway is on the same subnet as the IP \r
+ address. */\r
+ configASSERT( ( ( *ipLOCAL_IP_ADDRESS_POINTER ) & xNetworkAddressing.ulNetMask ) == ( xNetworkAddressing.ulGatewayAddress & xNetworkAddressing.ulNetMask ) );\r
}\r
#endif /* ipconfigUSE_DHCP == 1 */\r
\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