Home
last modified time | relevance | path

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

/FreeRTOS-Plus-TCP-v3.1.0/source/
DFreeRTOS_DNS_Cache.c69 static DNSCacheRow_t xDNSCache[ ipconfigDNS_CACHE_ENTRIES ] = { 0x0 }; variable
141 ( void ) memset( xDNSCache, 0x0, sizeof( xDNSCache ) ); in FreeRTOS_dnsclear()
234 if( xDNSCache[ uxIndex ].pcName[ 0 ] == ( char ) 0 ) in prvFindEntryIndex()
239 if( strcmp( xDNSCache[ uxIndex ].pcName, pcName ) == 0 ) in prvFindEntryIndex()
265 uint32_t ulAge = ulCurrentTimeSeconds - xDNSCache[ uxIndex ].ulTimeWhenAddedInSeconds; in prvGetCacheIPEntry()
269 if( ulAge < FreeRTOS_ntohl( xDNSCache[ uxIndex ].ulTTL ) ) in prvGetCacheIPEntry()
280 … ucIndex = xDNSCache[ uxIndex ].ucCurrentIPAddress % xDNSCache[ uxIndex ].ucNumIPAddresses; in prvGetCacheIPEntry()
284 xDNSCache[ uxIndex ].ucCurrentIPAddress++; in prvGetCacheIPEntry()
287 *pulIP = xDNSCache[ uxIndex ].ulIPAddresses[ ulIPAddressIndex ]; in prvGetCacheIPEntry()
293 xDNSCache[ uxIndex ].pcName[ 0 ] = ( char ) 0; in prvGetCacheIPEntry()
[all …]