Lines Matching refs:DnsCache

759     if (StrCmp (DnsCacheEntry.HostName, Item->DnsCache.HostName) == 0 && \  in UpdateDns4Cache()
760 … CompareMem (DnsCacheEntry.IpAddress, Item->DnsCache.IpAddress, sizeof (EFI_IPv4_ADDRESS)) == 0) { in UpdateDns4Cache()
775 Item->DnsCache.Timeout = DnsCacheEntry.Timeout; in UpdateDns4Cache()
794 NewDnsCache->DnsCache.HostName = AllocatePool (StrSize (DnsCacheEntry.HostName)); in UpdateDns4Cache()
795 if (NewDnsCache->DnsCache.HostName == NULL) { in UpdateDns4Cache()
799 …CopyMem (NewDnsCache->DnsCache.HostName, DnsCacheEntry.HostName, StrSize (DnsCacheEntry.HostName)); in UpdateDns4Cache()
801 NewDnsCache->DnsCache.IpAddress = AllocatePool (sizeof (EFI_IPv4_ADDRESS)); in UpdateDns4Cache()
802 if (NewDnsCache->DnsCache.IpAddress == NULL) { in UpdateDns4Cache()
806 CopyMem (NewDnsCache->DnsCache.IpAddress, DnsCacheEntry.IpAddress, sizeof (EFI_IPv4_ADDRESS)); in UpdateDns4Cache()
808 NewDnsCache->DnsCache.Timeout = DnsCacheEntry.Timeout; in UpdateDns4Cache()
850 if (StrCmp (DnsCacheEntry.HostName, Item->DnsCache.HostName) == 0 && \ in UpdateDns6Cache()
851 … CompareMem (DnsCacheEntry.IpAddress, Item->DnsCache.IpAddress, sizeof (EFI_IPv6_ADDRESS)) == 0) { in UpdateDns6Cache()
866 Item->DnsCache.Timeout = DnsCacheEntry.Timeout; in UpdateDns6Cache()
885 NewDnsCache->DnsCache.HostName = AllocatePool (StrSize (DnsCacheEntry.HostName)); in UpdateDns6Cache()
886 if (NewDnsCache->DnsCache.HostName == NULL) { in UpdateDns6Cache()
890 …CopyMem (NewDnsCache->DnsCache.HostName, DnsCacheEntry.HostName, StrSize (DnsCacheEntry.HostName)); in UpdateDns6Cache()
892 NewDnsCache->DnsCache.IpAddress = AllocatePool (sizeof (EFI_IPv6_ADDRESS)); in UpdateDns6Cache()
893 if (NewDnsCache->DnsCache.IpAddress == NULL) { in UpdateDns6Cache()
897 CopyMem (NewDnsCache->DnsCache.IpAddress, DnsCacheEntry.IpAddress, sizeof (EFI_IPv6_ADDRESS)); in UpdateDns6Cache()
899 NewDnsCache->DnsCache.Timeout = DnsCacheEntry.Timeout; in UpdateDns6Cache()
2044 Item4->DnsCache.Timeout--; in DnsOnTimerUpdate()
2050 if (Item4->DnsCache.Timeout<=0) { in DnsOnTimerUpdate()
2063 Item6->DnsCache.Timeout--; in DnsOnTimerUpdate()
2069 if (Item6->DnsCache.Timeout<=0) { in DnsOnTimerUpdate()