public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Jürgen Lambrecht" <J.Lambrecht@televic.com>
To: Alok Singh <aloks@broadcom.com>
Cc: Gary Thomas <gary@mlbassoc.com>,  ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] FW: [ECOS] ECOS: Free BSD - Default gateway entry , duplicate  ARP//llinfo entries -
Date: Fri, 14 Sep 2007 12:54:00 -0000	[thread overview]
Message-ID: <46EA846F.2070007@televic.com> (raw)
In-Reply-To: <FE7FB54DCB7C6949A1D3F9FF22DA6C13847D74@lvl7in-mail01.lvl7.com>

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...
> 
> 
<snip>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2007-09-14 12:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 11:31 Alok Singh
2007-07-30 21:54 ` Laurie Gellatly
2007-07-31 14:39   ` Alok Singh
2007-07-31 15:08     ` Gary Thomas
2007-07-31 17:49       ` Alok Singh
2007-07-31 17:55         ` Gary Thomas
2007-07-31 17:58           ` Alok Singh
2007-07-31 18:06             ` Gary Thomas
2007-07-31 19:15               ` [ECOS] FreeBSD Stack issues Steve West
2007-08-31 15:54               ` [ECOS] FW: [ECOS] ECOS: Free BSD - Default gateway entry , duplicate ARP//llinfo entries - Alok Singh
2007-09-14 12:54                 ` Jürgen Lambrecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46EA846F.2070007@televic.com \
    --to=j.lambrecht@televic.com \
    --cc=aloks@broadcom.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=gary@mlbassoc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).