mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
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:
parent
7ec4773131
commit
be44f8aaa7
5 changed files with 35 additions and 6 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue