Edit

Share via


Route Flags

State of the Route Constants

Constant Value Description
RTM_ROUTE_STATE_CREATED 0 Route has been created.
RTM_ROUTE_STATE_DELETING 1 Route is being deleted.
RTM_ROUTE_STATE_DELETED 2 Route has been deleted.

 

Route Update Flags

Constant Value Description
RTM_ROUTE_CHANGE_FIRST 0x01 Indicates that the routing table manager should not check the Neighbour member of the RTM_ROUTE_INFO structure when determining when two routes are equal.
RTM_ROUTE_CHANGE_NEW 0x02 Returned by the routing table manager to indicate a new route was created.
RTM_ROUTE_CHANGE_BEST 0x00010000 Returned by the routing table manager to indicate that the route that was added or updated was the best route, or that because of the change, a new route became the best route.

 

Unicast Flags

Constant Value Description
RTM_ROUTE_FLAGS_LOCAL 0x0010 Indicates a destination is on a directly reachable network.
RTM_ROUTE_FLAGS_REMOTE 0x0020 Indicates that the destination is not on a directly reachable network.
RTM_ROUTE_FLAGS_MYSELF 0x0040 Indicates the destination is one of the router's addresses.

 

Broadcast and Multicast Flags

Constant Value Description
RTM_ROUTE_FLAGS_MCAST 0x0100 Indicates that this route is a route to a multicast address.
RTM_ROUTE_FLAGS_LOCAL_MCAST 0x0200 Indicates that this route is a route to a local multicast address.
RTM_ROUTE_FLAGS_LIMITED_BC 0x0400 Indicates that this route is a limited broadcast address. Packets to this destination should not be forwarded.
RTM_ROUTE_FLAGS_ZEROS_NETBC 0x1000 Indicates that the destination matches an interface's all-zeros broadcast address. If broadcast forwarding is enabled, packets should be received and resent out all appropriate interfaces.
RTM_ROUTE_FLAGS_ZEROS_SUBNETBC 0x2000 Indicates that the destination matches an interface's all-zeros subnet broadcast address. If subnet broadcast forwarding is enabled, packets should be received and resent out all appropriate interfaces.
RTM_ROUTE_FLAGS_ONES_NETBC 0x4000 Indicates that the destination matches an interface's all-ones broadcast address. If broadcast forwarding is enabled, packets should be received and resent out all appropriate interfaces.
RTM_ROUTE_FLAGS_ONES_SUBNETBC 0x8000 Indicates that the destination matches an interface's all-ones subnet broadcast address. If subnet broadcast forwarding is enabled, packets should be received and resent out all appropriate interfaces.

 

Grouping of Flags

Group Members Description
RTM_ROUTE_FLAGS_FORWARDING RTM_ROUTE_FLAGS_MARTIAN, RTM_ROUTE_FLAGS_BLACKHOLE, RTM_ROUTE_FLAGS_DISCARD, RTM_ROUTE_FLAGS_INACTIVE Specifies any forwarding flags.
RTM_ROUTE_FLAGS_ANY_UNICAST RTM_ROUTE_FLAGS_LOCAL, RTM_ROUTE_FLAGS_REMOTE, RTM_ROUTE_FLAGS_MYSELF Specifies any unicast flags.
RTM_ROUTE_FLAGS_ANY_MCAST RTM_ROUTE_FLAGS_MCAST, RTM_ROUTE_FLAGS_LOCAL_MCAST Specifies any unicast flags.
RTM_ROUTE_FLAGS_SUBNET_BCAST RTM_ROUTE_FLAGS_ONES_SUBNET_BC, RTM_ROUTE_FLAGS_ZEROS_SUBNETBC Specifies any subnet broadcast flags.
RTM_ROUTE_FLAGS_NET_BCAST RTM_ROUTE_FLAGS_ONES_NETBC, RTM_ROUTE_FLAGS_ZEROS_NETBC Specifies any net-wide broadcast flags.
RTM_ROUTE_FLAGS_ANY_BCAST RTM_ROUTE_FLAGS_LIMITED_BC, RTM_ROUTE_FLAGS_ONES_NETBC, RTM_ROUTE_FLAGS_ONES_SUBNET_BC, RTM_ROUTE_FLAGS_ZEROS_NETBC, RTM_ROUTE_FLAGS_ZEROS_SUBNETBC Specifies any of the subnet or net-wide broadcast flags.