This is the mail archive of the ecos-patches@sources.redhat.com 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]

Re: [ECOS] build_bootp_record() support dns server address


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


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