public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Reinitializing eth0 using BOOTP
@ 2002-11-14  8:21 Ajay Dudani
  0 siblings, 0 replies; only message in thread
From: Ajay Dudani @ 2002-11-14  8:21 UTC (permalink / raw)
  To: ecos-discuss

I am trying to reinitialize the eth0 network interface in the
application.

When the application come up initially, it uses init_all_interfaces() to
initialize the network using BOOTP.  Redboot is also using BOOTP.

Now in my application I want to be able to reinitialize the network
either manually (by entering all values) or by using BOOTP.

I have been able to reinitialize the interface manually by:
- Shutdown the interface
- build_bootp_record
- init_net using the manually build (fake) BOOTP record.

However I am unable to do same thing using BOOTP.
With BOOTP this is what I am trying to doing:
- do_bootp to send out request and get data from BOOTP server
- init_net using this bootp record.

However do_bootp returns 'false' without any error.
Looking into code for do_bootp, the only place where it returns 'false'
without any perror, is when there is no server present.  However I am
not sure how this is possible since I was able to initialse the network
initially when the application came up using BOOTP.

Am I missing something here.

Ajay Dudani


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-14 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-14  8:21 [ECOS] Reinitializing eth0 using BOOTP Ajay Dudani

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