9#ifndef __EFI_IP4_ROUTE_H__
10#define __EFI_IP4_ROUTE_H__
14#define IP4_DIRECT_ROUTE 0x00000001
16#define IP4_ROUTE_CACHE_HASH_VALUE 31
17#define IP4_ROUTE_CACHE_MAX 64
19#define IP4_ROUTE_CACHE_HASH(Dst, Src) (((Dst) ^ (Src)) % IP4_ROUTE_CACHE_HASH_VALUE)
64 LIST_ENTRY CacheBucket[IP4_ROUTE_CACHE_HASH_VALUE];
206 IN IP4_ADDR SubnetMask,
207 IN BOOLEAN AlwaysTryDestAddr
EFI_STATUS Ip4BuildEfiRouteTable(IN IP4_PROTOCOL *IpInstance)
IP4_ROUTE_CACHE_ENTRY * Ip4FindRouteCache(IN IP4_ROUTE_TABLE *RtTable, IN IP4_ADDR Dest, IN IP4_ADDR Src)
EFI_STATUS Ip4DelRoute(IN OUT IP4_ROUTE_TABLE *RtTable, IN IP4_ADDR Dest, IN IP4_ADDR Netmask, IN IP4_ADDR Gateway)
VOID Ip4FreeRouteCacheEntry(IN IP4_ROUTE_CACHE_ENTRY *RtCacheEntry)
IP4_ROUTE_TABLE * Ip4CreateRouteTable(VOID)
IP4_ROUTE_CACHE_ENTRY * Ip4Route(IN IP4_ROUTE_TABLE *RtTable, IN IP4_ADDR Dest, IN IP4_ADDR Src, IN IP4_ADDR SubnetMask, IN BOOLEAN AlwaysTryDestAddr)
EFI_STATUS Ip4AddRoute(IN OUT IP4_ROUTE_TABLE *RtTable, IN IP4_ADDR Dest, IN IP4_ADDR Netmask, IN IP4_ADDR Gateway)
VOID Ip4FreeRouteTable(IN IP4_ROUTE_TABLE *RtTable)