Lines Matching refs:xDNSCache

54     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()
396 xDNSCache[ uxIndex ].pcName[ 0 ] = ( char ) 0; in prvGetCacheIPEntry()
420 if( xDNSCache[ uxIndex ].ucNumIPAddresses < in prvUpdateCacheEntry()
425 ulIPAddressIndex = xDNSCache[ uxIndex ].ucNumIPAddresses; in prvUpdateCacheEntry()
426 xDNSCache[ uxIndex ].ucNumIPAddresses++; in prvUpdateCacheEntry()
429 …( void ) memcpy( &( xDNSCache[ uxIndex ].xAddresses[ ulIPAddressIndex ] ), pxIP, sizeof( *pxIP ) ); in prvUpdateCacheEntry()
430 xDNSCache[ uxIndex ].ulTTL = ulTTL; in prvUpdateCacheEntry()
431 xDNSCache[ uxIndex ].ulTimeWhenAddedInSeconds = ulCurrentTimeSeconds; in prvUpdateCacheEntry()
451 ( void ) strcpy( xDNSCache[ uxFreeEntry ].pcName, pcName ); in prvInsertCacheEntry()
452 ( void ) memcpy( &( xDNSCache[ uxFreeEntry ].xAddresses[ 0 ] ), pxIP, sizeof( *pxIP ) ); in prvInsertCacheEntry()
455 xDNSCache[ uxFreeEntry ].ulTTL = ulTTL; in prvInsertCacheEntry()
456 xDNSCache[ uxFreeEntry ].ulTimeWhenAddedInSeconds = ulCurrentTimeSeconds; in prvInsertCacheEntry()
458 xDNSCache[ uxFreeEntry ].ucNumIPAddresses = 1; in prvInsertCacheEntry()
459 xDNSCache[ uxFreeEntry ].ucCurrentIPAddress = 0; in prvInsertCacheEntry()
462 ( void ) memset( &xDNSCache[ uxFreeEntry ].xAddresses[ 1 ], in prvInsertCacheEntry()
464 sizeof( xDNSCache[ uxFreeEntry ].xAddresses[ 1 ] ) * in prvInsertCacheEntry()
492 uxNumIPAddresses = ( size_t ) xDNSCache[ uxIndex ].ucNumIPAddresses; in prvReadDNSCache()
503 pxAddresses = &( xDNSCache[ uxIndex ].xAddresses[ uxIPAddressIndex ] ); in prvReadDNSCache()
511 … pxNewAddress = pxNew_AddrInfo( xDNSCache[ uxIndex ].pcName, FREERTOS_AF_INET4, ucBytes ); in prvReadDNSCache()
518 …pxNewAddress = pxNew_AddrInfo( xDNSCache[ uxIndex ].pcName, FREERTOS_AF_INET6, pxAddresses->xIPAdd… in prvReadDNSCache()
631 const DNSCacheRow_t * pxRow = &( xDNSCache[ xEntry ] ); in vShowDNSCacheTable()