This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Notes on static configuration of an eCos network inte
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Subject: Re: [ECOS] Notes on static configuration of an eCos network inte
- From: Grant Edwards <grante at visi dot com>
- Date: Mon, 17 Jul 2000 16:40:33 -0500
- Cc: Gary Thomas <gthomas at redhat dot com>,ecos-discuss at sourceware dot cygnus dot com, Nick dot Barnes at pobox dot com
- References: <XFMail.20000717100312.gthomas@redhat.com> <200007171628.SAA06642@biferten.ma.tech.ascom.ch>
> Time to chip my two pence worth in.
>
> 1) I think having the ability to statically defined IP
> addresses inside the binary is a bad idea.
I guess I wasn't clear. My IP addresses aren't hard-wired in
the source code. They're retrieved from flash. The change I'm
thinking of making is instead of taking those addresses and
building a bootp frame to pass to init_net(), I'll just make
the ioctl() calls. That eliminates the need for the routines
to build/parse bootp records, and the network initialization
happens where it's obvious what's going on.
> In my case i get them from flash, so they are board specific, not
> binary specific.
Same here.
> As i said in my last message, it not so easy to get
> it right, especially when init_all_network... keeps changing with
> every release. Thats why i asked for a review off all this when DHCP
> is added. init_all_network... should be
> init_all_unintializes_network...
--
Grant Edwards
grante@visi.com