This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]