MIB_BEST_IF

The MIB_BEST_IF structure stores the index of the interface that has the best route to a particular destination address.

typedef struct _MIB_BEST_IF {
  DWORD   dwDestAddr;    // destination address
  DWORD   dwIfIndex;     // best interface for that dest addr
} MIB_BEST_IF, *PMIB_BEST_IF;

Members

dwDestAddr
Specifies the IP address of the destination.
dwIfIndex
Specifies the index of the interface that has the best route to the destination address specified by the dwDestAddr member.

Requirements

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

See Also

GetBestInterface, GetBestRoute