/* If Map is NULL, then ASSERT(). If Item is NULL, then ASSERT(). */
BOOLEAN NetItemInMap(IN NET_MAP *Map, IN NET_MAP_ITEM *Item)
/* If Map is NULL, then ASSERT(). If Item is NULL, then ASSERT(). */
BOOLEAN NetItemInMap(IN NET_MAP *Map, IN NET_MAP_ITEM *Item)
{
  LIST_ENTRY  *ListEntry;
  ASSERT (Map != NULL && Item != NULL);
  NET_LIST_FOR_EACH (ListEntry, &Map->Used) {
    if (ListEntry == &Item->Link) {
      return TRUE;
    }
  }
  return FALSE;
}