This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Obtaining all entries from the routing table...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]