/** @file\r
\r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
@return The two addresses match or not.\r
\r
**/\r
-STATIC\r
BOOLEAN\r
ArpMatchAddress (\r
IN NET_ARP_ADDRESS *AddressOne,\r
for (Entry = StartEntry->ForwardLink; Entry != CacheTable; Entry = Entry->ForwardLink) {\r
CacheEntry = NET_LIST_USER_STRUCT (Entry, ARP_CACHE_ENTRY, List);\r
\r
- if (FindOpType & MATCH_SW_ADDRESS) {\r
+ if ((FindOpType & MATCH_SW_ADDRESS) != 0) {\r
//\r
// Find by the software address.\r
//\r
}\r
}\r
\r
- if (FindOpType & MATCH_HW_ADDRESS) {\r
+ if ((FindOpType & MATCH_HW_ADDRESS) != 0) {\r
//\r
// Find by the hardware address.\r
//\r
// The instance is not configured.\r
//\r
\r
- if (ConfigData->SwAddressType == IPv4_ETHER_PROTO_TYPE) {\r
+ if (ConfigData->SwAddressType == IPV4_ETHER_PROTO_TYPE) {\r
CopyMem (&Ip, ConfigData->StationAddress, sizeof (IP4_ADDR));\r
\r
if (!Ip4IsUnicast (NTOHL (Ip), 0)) {\r
@return The count of the deleted cache entries.\r
\r
**/\r
-STATIC\r
UINTN\r
ArpDeleteCacheEntryInTable (\r
IN LIST_ENTRY *CacheTable,\r