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

@ -139,4 +139,12 @@ from the FreeRTOSIPConfig.h configuration header file. */
#define ipconfigFREERTOS_PLUS_NABTO 0
#endif
#ifndef ipconfigNABTO_TASK_STACK_SIZE
#define ipconfigNABTO_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )
#endif
#ifndef ipconfigNABTO_TASK_PRIORITY
#define ipconfigNABTO_TASK_PRIORITY ( ipconfigUDP_TASK_PRIORITY + 1 )
#endif
#endif /* FREERTOS_DEFAULT_IP_CONFIG_H */

View File

@ -106,6 +106,10 @@ void vApplicationPingReplyHook( ePingReplyStatus_t eStatus, uint16_t usIdentifie
void FreeRTOS_ReleaseUDPPayloadBuffer( void *pvBuffer );
uint8_t * FreeRTOS_GetMACAddress( void );
#if ( ipconfigFREERTOS_PLUS_NABTO == 1 )
portBASE_TYPE xStartNabtoTask( void );
#endif
#endif /* FREERTOS_IP_H */