[ECOS] build_bootp_record() support dns server address

Jonathan Larmour jifl@eCosCentric.com
Thu Jan 9 17:54:00 GMT 2003


Andrew Lunn wrote:
> 
> Secondly, build_bootp_record() is a public API function. I have my IP
> addresses, network masks etc, stored in flash. I use this function to
> build a bootp record which i then pass to init_net(). Your change will
> break my and others code.

I hadn't realised that.

> I have a counter proposal. 
> 
> Two new CDL options. A bool CYGPKG_NS_DNS_DEFAULT which
> enables/disables the use of a default address. A data
> CYGDAT_NS_DNS_DEFAULT_SERVER which is the IP address of the server. 
> 
> init_all_network_interfaces() then has some code inside
> 
> #ifdef CYGPKG_NS_DNS_DEFAULT_SERVER
> 
> to turn the string into an struct in_addr and pass it to
> cyg_dns_res_init()

I prefer this then.

Jifl
-- 
eCosCentric       http://www.eCosCentric.com/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine



More information about the Ecos-patches mailing list