Home | History | Annotate | Download | only in DnsDxe

Lines Matching refs:Item

33   NET_MAP_ITEM  *Item;

38 Item = NetMapFindKey (TokenMap, (VOID *) TokenEntry);
40 if (Item != NULL) {
44 NetMapRemoveItem (TokenMap, Item, NULL);
68 NET_MAP_ITEM *Item;
73 Item = NetMapFindKey (TokenMap, (VOID *) TokenEntry);
75 if (Item != NULL) {
79 NetMapRemoveItem (TokenMap, Item, NULL);
91 @param[in] Item Pointer to the NET_MAP_ITEM.
97 is not the same as that in the Item, if Arg is not
107 IN NET_MAP_ITEM *Item,
115 if ((Arg != NULL) && (Item->Key != Arg)) {
119 if (Item->Value != NULL) {
122 // Item->Value.
124 Packet = (NET_BUF *) (Item->Value);
133 TokenEntry = (DNS4_TOKEN_ENTRY *) Item->Key;
151 @param[in] Item Pointer to the NET_MAP_ITEM.
157 is not the same as that in the Item, if Arg is not
167 IN NET_MAP_ITEM *Item,
175 if ((Arg != NULL) && (Item->Key != Arg)) {
179 if (Item->Value != NULL) {
182 // Item->Value.
184 Packet = (NET_BUF *) (Item->Value);
193 TokenEntry = (DNS6_TOKEN_ENTRY *) Item->Key;
228 NET_MAP_ITEM *Item;
231 Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
232 *TokenEntry = (DNS4_TOKEN_ENTRY *) (Item->Key);
264 NET_MAP_ITEM *Item;
267 Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
268 *TokenEntry = (DNS6_TOKEN_ENTRY *) (Item->Key);
747 DNS4_CACHE *Item;
752 Item = NULL;
758 Item = NET_LIST_USER_STRUCT (Entry, DNS4_CACHE, AllCacheLink);
759 if (StrCmp (DnsCacheEntry.HostName, Item->DnsCache.HostName) == 0 && \
760 CompareMem (DnsCacheEntry.IpAddress, Item->DnsCache.IpAddress, sizeof (EFI_IPv4_ADDRESS)) == 0) {
768 RemoveEntryList (&Item->AllCacheLink);
775 Item->DnsCache.Timeout = DnsCacheEntry.Timeout;
838 DNS6_CACHE *Item;
843 Item = NULL;
849 Item = NET_LIST_USER_STRUCT (Entry, DNS6_CACHE, AllCacheLink);
850 if (StrCmp (DnsCacheEntry.HostName, Item->DnsCache.HostName) == 0 && \
851 CompareMem (DnsCacheEntry.IpAddress, Item->DnsCache.IpAddress, sizeof (EFI_IPv6_ADDRESS)) == 0) {
859 RemoveEntryList (&Item->AllCacheLink);
866 Item->DnsCache.Timeout = DnsCacheEntry.Timeout;
924 DNS4_SERVER_IP *Item;
929 Item = NULL;
935 Item = NET_LIST_USER_STRUCT (Entry, DNS4_SERVER_IP, AllServerLink);
936 if (CompareMem (&Item->Dns4ServerIp, &ServerIp, sizeof (EFI_IPv4_ADDRESS)) == 0) {
979 DNS6_SERVER_IP *Item;
984 Item = NULL;
990 Item = NET_LIST_USER_STRUCT (Entry, DNS6_SERVER_IP, AllServerLink);
991 if (CompareMem (&Item->Dns6ServerIp, &ServerIp, sizeof (EFI_IPv6_ADDRESS)) == 0) {
1077 @param Item Return corresponding Token entry.
1088 OUT NET_MAP_ITEM **Item
1100 *Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
1101 Packet = (NET_BUF *) ((*Item)->Value);
1121 *Item =NULL;
1153 NET_MAP_ITEM *Item;
1174 Item = NULL;
1229 if (!IsValidDnsResponse (&Instance->Dns4TxTokens, DnsHeader->Identification, QuerySection->Type, &Item)) {
1234 ASSERT (Item != NULL);
1235 Dns4TokenEntry = (DNS4_TOKEN_ENTRY *) (Item->Key);
1237 if (!IsValidDnsResponse (&Instance->Dns6TxTokens, DnsHeader->Identification, QuerySection->Type, &Item)) {
1242 ASSERT (Item != NULL);
1243 Dns6TokenEntry = (DNS6_TOKEN_ENTRY *) (Item->Key);
1258 if (Item->Value != NULL) {
1259 NetbufFree ((NET_BUF *) (Item->Value));
1689 NET_MAP_ITEM *Item;
1701 Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
1702 if (Packet == (NET_BUF *)(Item->Value)) {
1703 Dns4TokenEntry = ((DNS4_TOKEN_ENTRY *)Item->Key);
1710 Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
1711 if (Packet == (NET_BUF *)(Item->Value)) {
1712 Dns6TokenEntry = ((DNS6_TOKEN_ENTRY *)Item->Key);