/** @file\r
EFI IP4 route table and route cache table defintions.\r
\r
-Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2005 - 2009, Intel Corporation. All rights reserved.<BR>\r
+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
http://opensource.org/licenses/bsd-license.php\r
\r
#include "Ip4Common.h"\r
\r
-typedef enum {\r
- IP4_DIRECT_ROUTE = 0x00000001,\r
+#define IP4_DIRECT_ROUTE 0x00000001\r
\r
- IP4_ROUTE_CACHE_HASH = 31,\r
- IP4_ROUTE_CACHE_MAX = 64 // Max NO. of cache entry per hash bucket\r
-} IP4_ROUTE_ENUM_TYPES;\r
+#define IP4_ROUTE_CACHE_HASH_VALUE 31\r
+#define IP4_ROUTE_CACHE_MAX 64 // Max NO. of cache entry per hash bucket\r
\r
-#define IP4_ROUTE_CACHE_HASH(Dst, Src) (((Dst) ^ (Src)) % IP4_ROUTE_CACHE_HASH)\r
+#define IP4_ROUTE_CACHE_HASH(Dst, Src) (((Dst) ^ (Src)) % IP4_ROUTE_CACHE_HASH_VALUE)\r
\r
///\r
/// The route entry in the route table. Dest/Netmask is the destion\r
/// detach them later.\r
///\r
typedef struct {\r
- LIST_ENTRY CacheBucket[IP4_ROUTE_CACHE_HASH];\r
+ LIST_ENTRY CacheBucket[IP4_ROUTE_CACHE_HASH_VALUE];\r
} IP4_ROUTE_CACHE;\r
\r
///\r