On 25.07.2012 02:54, Philip Prindeville wrote:
Ok, dumb question... How do I map a routing entries rtm_flags back to a 
IANAipRouteProtocol value?

Well, something like this can probably be used:

~RTF_GATEWAY   maps to local     (2),  -- local interface
RTF_STATIC     maps to    netmgmt   (3),  -- static route
RTF_DYNAMIC    maps to    icmp      (4),  -- result of ICMP Redirect

other routes?         other     (1),  -- not specified

RTF_PROTO1 tells us thet it is dynamic route, and you have to use quagga/bird/openbgpd/whatever cli / api to get more precise results.

You can examine `netstat -rn -finet` output with netstat(8) to get good overview for common route types.



_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[email protected]"


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[email protected]"

Reply via email to