From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2519 invoked by alias); 16 Oct 2003 07:25:15 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 2511 invoked from network); 16 Oct 2003 07:25:14 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sources.redhat.com with SMTP; 16 Oct 2003 07:25:14 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1AA2VQ-0008Qr-00; Thu, 16 Oct 2003 09:25:08 +0200 Date: Thu, 16 Oct 2003 07:25:00 -0000 To: Burl Nyswonger Cc: ecos-discuss@sources.redhat.com Message-ID: <20031016072508.GA32391@lunn.ch> Mail-Followup-To: Burl Nyswonger , ecos-discuss@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Andrew Lunn Subject: Re: [ECOS] Obtaining all entries from the routing table... X-SW-Source: 2003-10/txt/msg00283.txt.bz2 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