Home
last modified time | relevance | path

Searched refs:xDNSCache (Results 1 – 2 of 2) sorted by relevance

/FreeRTOS-Plus-TCP-v4.0.0/source/
DFreeRTOS_DNS_Cache.c54 static DNSCacheRow_t xDNSCache[ ipconfigDNS_CACHE_ENTRIES ]; variable
185 ( void ) memset( xDNSCache, 0x0, sizeof( xDNSCache ) ); in FreeRTOS_dnsclear()
323 if( xDNSCache[ uxIndex ].pcName[ 0 ] == ( char ) 0 ) in prvFindEntryIndex()
328 if( strcmp( xDNSCache[ uxIndex ].pcName, pcName ) == 0 ) in prvFindEntryIndex()
331 if( pxIP->xIs_IPv6 == xDNSCache[ uxIndex ].xAddresses[ 0 ].xIs_IPv6 ) in prvFindEntryIndex()
362 uint32_t ulAge = ulCurrentTimeSeconds - xDNSCache[ uxIndex ].ulTimeWhenAddedInSeconds; in prvGetCacheIPEntry()
366 if( ulAge < FreeRTOS_ntohl( xDNSCache[ uxIndex ].ulTTL ) ) in prvGetCacheIPEntry()
377 … ucIndex = xDNSCache[ uxIndex ].ucCurrentIPAddress % xDNSCache[ uxIndex ].ucNumIPAddresses; in prvGetCacheIPEntry()
381 xDNSCache[ uxIndex ].ucCurrentIPAddress++; in prvGetCacheIPEntry()
384 …( void ) memcpy( pxIP, &( xDNSCache[ uxIndex ].xAddresses[ ulIPAddressIndex ] ), sizeof( *pxIP ) ); in prvGetCacheIPEntry()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_DNS_Cache/
DFreeRTOS_DNS_Cache_utest.c100 static DNSCacheRow_t xDNSCache[ ipconfigDNS_CACHE_ENTRIES ]; variable
479 xDNSCache[ 0 ].xAddresses[ 0 ] = xAddress; in test_prepare_DNSLookup()