This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Obtaining all entries from the routing table...
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Burl Nyswonger <burl at nyswonger dot org>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 16 Oct 2003 09:25:08 +0200
- Subject: Re: [ECOS] Obtaining all entries from the routing table...
- References: <Pine.LNX.4.21.0310151333020.27998-100000@mx.nyswonger.org>
On Wed, Oct 15, 2003 at 01:36:14PM -0700, Burl Nyswonger wrote:
>
> Hi,
>
> I have been digging through both the the Free/Open BSD derrived stacks as
> well as the net/common stuff and I'm not finding a way to obtain a list of
> all routes. Under linux, this information is available via the /proc
> filesystem, under other OS's it is available through similar means, or
> through an ioctl interface, or sysctl(), etc...
>
> What gives? Am I missing something?
Yep, dig a bit deeper....
1) The FreeBSD has sysctl is you enable it.
2) Both stacks support ioctl calls to get/set this information.
3) Take a look at show_network_tables() in support.c for the FreeBSD stack.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss