Skip to content

Commit 5f41a38

Browse files
evpopovEmil Popovtony-josi-aws
authored
Missing DNS callbacks (#1206)
* Removes the code that needlessly clears the DNS callback list. This code is causing DNS callbacks to not get called when the queries time out. * Fix unit tests --------- Co-authored-by: Emil Popov <[email protected]> Co-authored-by: tony-josi-aws <[email protected]>
1 parent 1599660 commit 5f41a38

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

source/FreeRTOS_IP.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -670,15 +670,6 @@ void vIPNetworkUpCalls( struct xNetworkEndPoint * pxEndPoint )
670670
#endif
671671
#endif /* ipconfigUSE_NETWORK_EVENT_HOOK */
672672

673-
#if ( ipconfigDNS_USE_CALLBACKS != 0 )
674-
{
675-
/* The following function is declared in FreeRTOS_DNS.c and 'private' to
676-
* this library */
677-
extern void vDNSInitialise( void );
678-
vDNSInitialise();
679-
}
680-
#endif /* ipconfigDNS_USE_CALLBACKS != 0 */
681-
682673
/* Set remaining time to 0 so it will become active immediately. */
683674
if( pxEndPoint->bits.bIPv6 == pdTRUE_UNSIGNED )
684675
{

test/unit-test/FreeRTOS_IP/FreeRTOS_IP_utest.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ void test_vIPNetworkUpCalls( void )
174174
xEndPoint.bits.bIPv6 = pdFALSE;
175175

176176
vApplicationIPNetworkEventHook_Multi_Expect( eNetworkUp, &xEndPoint );
177-
vDNSInitialise_Expect();
178177
vARPTimerReload_Expect( pdMS_TO_TICKS( 10000 ) );
179178

180179
vIPNetworkUpCalls( &xEndPoint );
@@ -4369,7 +4368,6 @@ static void prvIPNetworkUpCalls_Generic( const uint8_t * pucAddress,
43694368
}
43704369

43714370
vApplicationIPNetworkEventHook_Multi_Expect( eNetworkUp, &xEndPoint );
4372-
vDNSInitialise_Expect();
43734371

43744372
if( xEndPoint.bits.bIPv6 == pdTRUE_UNSIGNED )
43754373
{

test/unit-test/FreeRTOS_IP_DiffConfig1/FreeRTOS_IP_DiffConfig1_utest.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ void test_vIPNetworkUpCalls_BackwardCompatible( void )
420420
NetworkEndPoint_t xEndPoint = { 0 };
421421

422422
vApplicationIPNetworkEventHook_Expect( eNetworkUp );
423-
vDNSInitialise_Expect();
424423
vARPTimerReload_Expect( pdMS_TO_TICKS( 10000 ) );
425424

426425
vIPNetworkUpCalls( &xEndPoint );

0 commit comments

Comments
 (0)