From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5034 invoked by alias); 14 Sep 2007 12:54:14 -0000 Received: (qmail 5023 invoked by uid 22791); 14 Sep 2007 12:54:13 -0000 X-Spam-Check-By: sourceware.org Received: from ip-212-239-176-5.dsl-static.scarlet.be (HELO lx-dmz.televic.com) (212.239.176.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Sep 2007 12:54:06 +0000 Received: (qmail 331 invoked from network); 14 Sep 2007 12:54:02 -0000 Received: from nt-email.televic.com (10.0.0.9) by lx-dmz.televic.com with SMTP; 14 Sep 2007 12:54:02 -0000 Received: from [10.0.56.4] ([10.0.56.4]) by nt-email.TELEVIC.COM with Microsoft SMTPSVC(6.0.3790.1830); Fri, 14 Sep 2007 14:54:02 +0200 Message-ID: <46EA846F.2070007@televic.com> Date: Fri, 14 Sep 2007 12:54:00 -0000 From: =?ISO-8859-1?Q?J=FCrgen_Lambrecht?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.13) Gecko/20060414 MIME-Version: 1.0 To: Alok Singh CC: Gary Thomas , ecos-discuss@ecos.sourceware.org References: <46AF506A.1020803@mlbassoc.com> <46AF7786.50508@mlbassoc.com> <46AF7A13.7080109@mlbassoc.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] FW: [ECOS] ECOS: Free BSD - Default gateway entry , duplicate ARP//llinfo entries - X-SW-Source: 2007-09/txt/msg00089.txt.bz2 Hello Alok, I tried your code, but at link time, the compiler gives an error because the function rn_walktree is unknown. You use rn_walktree in support.c::db_show_arptab(). Indeed, in bsd_tcpip/../src/sys/net/radix.c, rn_walktree is a static function. In the OpenBSD code, it is not static. I just removed the 'static' from the code (as in the OpenBSD code) to solve this, and moved the declaration from the .c to the .h file. And now it compiles and works. The output of db_show_arptab() is a bit messy (I expected something like when doing 'arp -a'), but usefull. Thanks. Gary, here a diff of my radix.h/c files to the latest ones in cvs: diff -r1.2 radix.c 75c75 < static int rn_walktree __P((struct radix_node_head *, walktree_f_t *, void *)); --- > //moved to .h for AS static int rn_walktree __P((struct radix_node_head *, walktree_f_t *, void *)); 995c995 < static int --- > int diff -r1.1 radix.h 176a177,179 > int rn_walktree __P((struct radix_node_head *, walktree_f_t *, void *));//AS Jürgen Lambrecht R&D Engineer Televic Transport Systems http://www.televic.com Televic NV / SA (main office) Leo Bekaertlaan 1 B-8870 Izegem Tel: +32 (0)51 303045 Fax: +32 (0)51 310670 Alok Singh wrote: > Gary, > > We had some communication regarding an issue I raised some time back. > The issue was resolved then. But you asked for a patch(that I was using) > to dump the ARP table on FreeBSD stack. I'm sending this now. I > understand that we have sysctl hooks in current code to dump the > routing/arp table, but in case one is new to stack, this primitive ARP > table dump utility will prove useful. Have a look. > Can these be integrated to ecos FreeBSD stack? > > Package - packages/net/bsd_tcpip/current > > > regards, > Alok > > -----Original Message----- > From: Gary Thomas [mailto:gary@mlbassoc.com] > Sent: Tuesday, July 31, 2007 11:36 PM > To: Alok Singh > Cc: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] FW: [ECOS] ECOS: Free BSD - Default gateway entry , > duplicate ARP//llinfo entries - > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Alok Singh wrote: > >>I ported it to FreeBSD( just copied actually ) from OpenBSD for >>debugging purposes. > > > If you send a patch, I'll try it; I don't have time to mess with > porting old code... > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss