/* If Map is NULL, then ASSERT(). If Key is NULL, then ASSERT(). */
NET_MAP_ITEM* EFIAPI NetMapFindKey(IN NET_MAP *Map, IN VOID *Key)
/* If Map is NULL, then ASSERT(). If Key is NULL, then ASSERT(). */
NET_MAP_ITEM* EFIAPI NetMapFindKey(IN NET_MAP *Map, IN VOID *Key)
{
  LIST_ENTRY    *Entry;
  NET_MAP_ITEM  *Item;
  ASSERT (Map != NULL && Key != NULL);
  NET_LIST_FOR_EACH (Entry, &Map->Used) {
    Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
    if (Item->Key == Key) {
      return Item;
    }
  }
  return NULL;
}