This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: packet dumping
- To: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Subject: Re: [ECOS] packet dumping
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 18 Oct 2001 18:43:18 +0100
- Cc: 'eCos discussion' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000001c157fb$a0cb2440$090110ac@TRENT>
"Trenton D. Adams" wrote:
>
> Not hard at all! :)
>
> extern int net_debug;
>
> net_debug = 1;
>
> With that as 1, diag_dump_buf() is called on each packet.
>
> Is that a good way of doing it?
You're right!
> Maybe we should add some #ifdefs along with a CDL MACRO instead of using
> "if (net_debug) {do net debug code}"? After all, the if (net_debug) is
> always going to be compiled in right now, isn't it?
Yes.
> If you want, I'll make the changes and submit a patch. I think the only
> modification required are in around 2 places in eth_drv.c!?
>
> If you want me to, which package CDL should have the option?
io/eth. I just wrote a bunch of stuff describing what to do, but I may as
well just go ahead and do it, so I will.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine