MIB_IPFORWARDROW

The MIB_IPFORWARDROW structure contains information that describes an IP network route.

typedef struct _MIB_IPFORWARDROW {
  DWORD   dwForwardDest;       // IP addr of destination
  DWORD   dwForwardMask;       // subnetwork mask of destination
  DWORD   dwForwardPolicy;     // conditions for multi-path route
  DWORD   dwForwardNextHop;    // IP address of next hop
  DWORD   dwForwardIfIndex;    // index of interface
  DWORD   dwForwardType;       // route type
  DWORD   dwForwardProto;      // protocol that generated route
  DWORD   dwForwardAge;        // age of route
  DWORD   dwForwardNextHopAS;  // autonomous system number 
                               // of next hop
  DWORD   dwForwardMetric1;    // protocol-specific metric 
  DWORD   dwForwardMetric2;    // protocol-specific metric 
  DWORD   dwForwardMetric3;    // protocol-specific metric 
  DWORD   dwForwardMetric4;    // protocol-specific metric 
  DWORD   dwForwardMetric5;    // protocol-specific metric 
} MIB_IPFORWARDROW, *PMIB_IPFORWARDROW;

Members

dwForwardDest
Specifies the IP address of the destination host.
dwForwardMask
Specifies the subnet mask of the destination host.
dwForwardPolicy
Specifies the set of conditions that would cause the selection of a multi-path route. This member is typically in IP TOS format. For more information, see RFC 1354.
dwForwardNextHop
Specifies the IP address of the next hop in the route.
dwForwardIfIndex
Specifies the index of the interface for this route.
dwForwardType
Specifies the route type as defined in RFC 1354. The following list shows the possible values for this member.
Value Meaning
4 The next hop is not the final destination (remote route).
3 The next hop is the final destination (local route).
2 The route is invalid.
1 Other.

dwForwardProto
Specifies the protocol that generated the route. See Protocol Identifiers for a list of possible protocols.
dwForwardAge
Specifies the age of the route in seconds.
dwForwardNextHopAS
Specifies the autonomous system number of the next hop.
dwForwardMetric1
Specifies a routing-protocol-specific metric value. This metric value is documented in RFC 1354.
dwForwardMetric2
Specifies a routing-protocol-specific metric value. This metric value is documented in RFC 1354.
dwForwardMetric3
Specifies a routing-protocol-specific metric value. This metric value is documented in RFC 1354.
dwForwardMetric4
Specifies a routing-protocol-specific metric value. This metric value is documented in RFC 1354.
dwForwardMetric5
Specifies a routing-protocol-specific metric value. This metric value is documented in RFC 1354.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Iprtrmib.h.

See Also

CreateIpForwardEntry, DeleteIpForwardEntry, MIB_IPFORWARDTABLE, SetIpForwardEntry