Reading the Routing Tables

Dominic Mitchell dom at happygiraffe.net
Mon Jan 15 23:39:52 GMT 2001


On Mon, Jan 15, 2001 at 12:07:55PM +0000, Roger Hardiman wrote:
> Thanks for the earlier tips. I've now got a solution from
> our own Ports Tree.
> 
> There is a port called 'zebra' in the 'net' category.
> Zebra is an intelligent router application.
> 
> And of course it runs on Linux, Solaris and all the BSDs.
> 
> So it was simply a case of seeing how the Zerba developer
> managed to read the Routing Table on this wide range of
> platforms, and specifically how they read it on FreeBSD
> and how they read it on Linux.
> 
> And just as you suggested earlier, FreeBSD uses the
> sysctl net.route.dump
> 
> However, it seems this is an internal sysctl which is why
> it does not show up with the sysctl command from userland.

That is most bizarre.  I won't even to pretend to understand why this is
the case!

-Dom




More information about the Ukfreebsd mailing list