[ECOS] FW: DHCP bind fails
Jay Foster
jay@systech.com
Thu Jun 22 23:57:00 GMT 2006
> 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
More information about the Ecos-discuss
mailing list