Share via


IP6RouteEntry structure

The IP6RouteEntry structure defines routing information for an IPv6 destination address.

Syntax

typedef struct IP6RouteEntry {
  ulong           ire_Length;
  ulong           ire_Type;
  ulong           ire_IfIndex;
  ulong           ire_SourceScopeId;
  ulong           ire_NextHopScopeId;
  struct in6_addr  ire_Source;
  struct in6_addr  ire_NextHop;
} IP6RouteEntry;

Members

  • ire_Length
    The size, in bytes, of the IP6RouteEntry structure.

  • ire_Type
    The type of route to the destination address. This member contains one of the following values:

    • IRE_TYPE_DIRECT
      The destination address is located on the same link that the source address is located.

    • IRE_TYPE_INDIRECT
      The destination address is located on a different link than the source address is located.

  • ire_IfIndex
    The interface index for the network interface from which outgoing packets that are sent to the destination address are sent.

  • ire_SourceScopeId
    The IPv6 scope identifier that is used as the source scope for packets that are sent to the destination address.

  • ire_NextHopScopeId
    The IPv6 scope identifier for the next hop that packets are sent to on their way to the destination address.

  • ire_Source
    The IPv6 address that is used as the source address for packets that are sent to the destination address. See IPv6Addr for a description of the in6_addr structure type.

  • ire_NextHop
    The IPv6 address for the next hop that packets would be sent to on their way to the destination address. See IPv6Addr for a description of the in6_addr structure type.

Remarks

An IPv6 firewall-hook driver passes a pointer to an IP6RouteEntry structure to the IPv6GetBestRouteInfo function when it obtains the route information for a destination address. If the call to IPv6GetBestRouteInfo returns successfully, the IP6RouteEntry structure contains the route information.

Requirements

Header

Ipinfo.h (include Ipinfo.h)

See also

IPv6GetBestRouteInfo

IPv6Addr

 

 

Send comments about this topic to Microsoft