This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Network debuggers & diag_printf
- From: "Rob Duncan" <rob dot duncan at designmagnitude dot com>
- To: "Eduardo Sabaj" <esabaj at hasar dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 4 Jul 2008 14:40:04 -0700
- Subject: Re: [ECOS] Network debuggers & diag_printf
- References: <486E42E6.2070905@hasar.com> <d13da2ba633b28b884ee23cf940239ad@tepkom.ru> <486E64E8.6020903@hasar.com> <be72a610807041106w72034b70n8fd5e7fc27b04964@mail.gmail.com> <486E79ED.205@hasar.com>
Hi Eduardo,
On 7/4/08, Eduardo Sabaj <esabaj@hasar.com> wrote:
> Hi Rob, I tried what you suggested but I had no success...
> Any other idea?
Did you regenerate the headers with "ecosconfig tree" after setting
the option? You can check by looking in install/include/pkgconf/net.h
By default the CYGHWR_NET_DRIVER_ETH0_BOOTP_SHOW symbol is defined
there, but if you set the option to 0 and regenerate the tree it will
be omitted.
Rob.
> Rob Duncan escribió:
> > Try setting the CYGHWR_NET_DRIVER_ETH0_BOOTP_SHOW option
> to 0.
> >
> > Rob.
> >
> > On 7/4/08, Eduardo Sabaj <esabaj@hasar.com> wrote:
> >
> >
> > > Thank you Andrey for your mail.. I could disable some but not all of the
> > > debuggers. Now I have the following information that is coming out from
> the
> > > serial port (COM1):
> > >
> > > BOOTP[eth0] op: REPLY
> > > htype: Ethernet
> > > hlen: 6
> > > hops: 0
> > > xid: 0x0
> > > secs: 0
> > > flags: 0x0
> > > hw_addr: 00:1b:eb:74:00:dd
> > > client IP: 192.0.2.235
> > > my IP: 192.0.2.235
> > > server IP: 192.0.110.232
> > > gateway IP: 192.0.110.232
> > > options:
> > > subnet mask: 255.255.0.0
> > > IP broadcast: 192.0.255.255
> > > gateway: 192.0.110.232
> > >
> > > These lines are printed using diag_printf () in module bootp_support.c,
> > > function show_bootp(). Instead of commenting the code I would like to
> know
> > > if there is a way to disable the diag_printf () function, at least for
> the
> > > code related to the network settings.
> > >
> > > Any idea?
> > >
> > > Regards
> > > Eduardo
> > >
> > >
> > > Andrey Baboshin escribió:
> > >
> > >
> > >
> > > > Hi,
> > > > You can try to disable CYGPKG_NET_FREEBSD_LOGGING (for freebsd tcp/ip
> > > > stack).
> > > > Just say cdl_option CYGPKG_NET_FREEBSD_LOGGING {
> > > > user_value 0
> > > > };
> > > > in your *.ecm file.
> > > > For full information make a look of freebsd_net.cdl file.
> > > >
> > > > On Fri, 04 Jul 2008 12:33:58 -0300, Eduardo Sabaj <esabaj@hasar.com>
> > > >
> > > >
> > > wrote:
> > >
> > >
> > > >
> > > >
> > > > > I would like to disable the following debuggers related to the net.
> I
> > > > > imagine that it may be a simple thing, but I did't work out how to
> do
> > > > > it...
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > ---
> > > > Andrey Baboshin
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss