Improve DCHP handling by removing the yiaddr field from outgoing DHCP packets and adding the broadcast bit in the flags field.

Correct the check to ensure the application network event hook is not called when the first network down event is sent.
Add in defaults for the Nabto task stack and priority.
This commit is contained in:
Richard Barry 2013-10-07 11:49:17 +00:00
parent 7ec4773131
commit be44f8aaa7
5 changed files with 35 additions and 6 deletions

View file

@ -1355,7 +1355,7 @@ static void prvProcessNetworkDownEvent( void )
/* The first network down event is generated by the IP stack
itself to initialise the network hardware, so do not call the
network down event the first time through. */
if( xCallEventHook == pdFALSE )
if( xCallEventHook == pdTRUE )
{
vApplicationIPNetworkEventHook( eNetworkDown );
}
@ -1398,7 +1398,9 @@ static void prvProcessNetworkDownEvent( void )
/* Static configuration is being used, so the network is now up. */
#if ipconfigFREERTOS_PLUS_NABTO == 1
{
vStartNabtoTask();
/* Return value is used in configASSERT() inside the
function. */
( void ) xStartNabtoTask();
}
#endif /* ipconfigFREERTOS_PLUS_NABTO */
}