This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
FW: DHCP bind fails
- From: Jay Foster <jay at systech dot com>
- To: "'ecos-discuss at ecos dot sourceware dot org'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 22 Jun 2006 16:53:38 -0700
- Subject: [ECOS] FW: DHCP bind fails
> I'm using the BSD TCP/IP stack, and when my program calls
> init_all_network_interfaces(), it fails the bind() call in do_dhcp(). The
> errno value is EADDRNOTAVAIL (Can't assign requested address). I tracked
> this down to the following statement in in_pcbbind():
>
> if (TAILQ_EMPTY(&in_ifaddrhead)) /* XXX broken! */
> return (EADDRNOTAVAIL);
>
> It looks like it is 'broken'. The IP initialization code calls
> TAILQ_INIT(&in_ifaddrhead), which will cause TAILQ_EMPTY() to return true.
> I have not had this problem on other platforms. What am I missing that is
> causing this problem? I searched the archives, but found no mention of
> this.
>
> Jay
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss