Scrubbed more.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6454 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -35,13 +35,13 @@ typedef enum {
|
||||
|
||||
#define IP4_ROUTE_CACHE_HASH(Dst, Src) (((Dst) ^ (Src)) % IP4_ROUTE_CACHE_HASH)
|
||||
|
||||
//
|
||||
// The route entry in the route table. Dest/Netmask is the destion
|
||||
// network. The nexthop is the gateway to send the packet to in
|
||||
// order to reach the Dest/Netmask. If the Flag has IP4_DIRECT_ROUTE
|
||||
// on, the gateway is the destination of the IP packet itself. Route
|
||||
// enties of the connected network have the flag on.
|
||||
//
|
||||
///
|
||||
/// The route entry in the route table. Dest/Netmask is the destion
|
||||
/// network. The nexthop is the gateway to send the packet to in
|
||||
/// order to reach the Dest/Netmask. If the Flag has IP4_DIRECT_ROUTE
|
||||
/// on, the gateway is the destination of the IP packet itself. Route
|
||||
/// enties of the connected network have the flag on.
|
||||
///
|
||||
typedef struct {
|
||||
LIST_ENTRY Link;
|
||||
INTN RefCnt;
|
||||
@@ -51,16 +51,16 @@ typedef struct {
|
||||
UINT32 Flag;
|
||||
} IP4_ROUTE_ENTRY;
|
||||
|
||||
//
|
||||
// The route cache entry. The route cache entry is optional.
|
||||
// But it is necessary to support the ICMP redirect message.
|
||||
// Check Ip4ProcessIcmpRedirect for information.
|
||||
//
|
||||
// The cache entry field Tag is used to tag all the route
|
||||
// cache entry spawned from a route table entry. This makes
|
||||
// it simple to delete all the route cache entries from a
|
||||
// to-be-deleted route entry.
|
||||
//
|
||||
///
|
||||
/// The route cache entry. The route cache entry is optional.
|
||||
/// But it is necessary to support the ICMP redirect message.
|
||||
/// Check Ip4ProcessIcmpRedirect for information.
|
||||
///
|
||||
/// The cache entry field Tag is used to tag all the route
|
||||
/// cache entry spawned from a route table entry. This makes
|
||||
/// it simple to delete all the route cache entries from a
|
||||
/// to-be-deleted route entry.
|
||||
///
|
||||
typedef struct {
|
||||
LIST_ENTRY Link;
|
||||
INTN RefCnt;
|
||||
@@ -70,25 +70,25 @@ typedef struct {
|
||||
UINTN Tag;
|
||||
} IP4_ROUTE_CACHE_ENTRY;
|
||||
|
||||
//
|
||||
// The route cache table is organized as a hash table. Each
|
||||
// IP4 route table has a embedded route cache. For now the
|
||||
// route cache and route table are binded togehter. But keep
|
||||
// the route cache a seperated structure in case we want to
|
||||
// detach them later.
|
||||
//
|
||||
///
|
||||
/// The route cache table is organized as a hash table. Each
|
||||
/// IP4 route table has a embedded route cache. For now the
|
||||
/// route cache and route table are binded togehter. But keep
|
||||
/// the route cache a seperated structure in case we want to
|
||||
/// detach them later.
|
||||
///
|
||||
typedef struct {
|
||||
LIST_ENTRY CacheBucket[IP4_ROUTE_CACHE_HASH];
|
||||
} IP4_ROUTE_CACHE;
|
||||
|
||||
//
|
||||
// Each IP4 instance has its own route table. Each ServiceBinding
|
||||
// instance has a default route table and default address.
|
||||
//
|
||||
// All the route table entries with the same mask are linked
|
||||
// together in one route area. For example, RouteArea[0] contains
|
||||
// the default routes. A route table also contains a route cache.
|
||||
//
|
||||
///
|
||||
/// Each IP4 instance has its own route table. Each ServiceBinding
|
||||
/// instance has a default route table and default address.
|
||||
///
|
||||
/// All the route table entries with the same mask are linked
|
||||
/// together in one route area. For example, RouteArea[0] contains
|
||||
/// the default routes. A route table also contains a route cache.
|
||||
///
|
||||
typedef struct _IP4_ROUTE_TABLE IP4_ROUTE_TABLE;
|
||||
|
||||
struct _IP4_ROUTE_TABLE {
|
||||
|
Reference in New Issue
Block a user