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: Grant Edwards <grante at visi dot com>
- Subject: Re: [ECOS] Notes on static configuration of an eCos network inte
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Mon, 17 Jul 2000 10:45:44 -0600 (MDT)
- Cc: Nick Barnes <Nick dot Barnes at pobox dot com>, ecos-discuss at sourceware dot cygnus dot com
On 17-Jul-2000 Grant Edwards wrote:
>> > Right now, I'm building a fake bootp record and passing it to
>> > init_net(). This seems to be way more work than it's worth
>> > (especially since it's not right), so I'm going to throw out
>> > all of the fake bootp stuff and just duplicate the code in
>> > net_init(), passing the right IP addresses in the ioctl() calls.
>> >
>> > It will end up being a lot smaller and simpler that way. Is
>> > there any reason I shouldn't do that?
>>
>> The reason that init_net() is based on BOOTP now is for flexibility.
>> By having the numbers hard coded [somehow] in the routine, you loose
>> all of that.
>
> The numbers aren't hard-coded. I have a structure that
> contains the ip address, subnet mask, and default gateway. This
> data was constructed by my boot loader code.
>
The idea was [the hope was] that the required data would be exactly what
BOOTP provides if used. Having you mimic BOOTP was supposed to make
this easier.
I haven't looked at how the DHCP support has changed this, so maybe it
will improve. If not, we're certainly open to listening to what you need.