This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: build_bootp_record() support dns server address
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 09 Jan 2003 06:54:59 +0000
- Subject: Re: [ECOS] build_bootp_record() support dns server address
- References: <20030109151441.A16152@white.office1>
Motoya Kurotsu wrote:
Hi, all;
I would like to hear your advice about my idea regarding
init_all_network_interfaces().
When ip address is staticaly set (i.e. CYGHWR_NET_DRIVER_ETHX_BOOTP is
undefined), init_net() doesn't call cyg_dns_res_init(). So I think it is
better to modify build_bootp_record() to have the dns server address
like in the following:
build_bootp_record(struct bootp *bp,
const char *if_name,
const char *addrs_ip,
const char *addrs_netmask,
const char *addrs_broadcast,
const char *addrs_gateway,
const char *addrs_server,
const char *addrs_dns_server); <---
Also the dns server address might be added in cdl script like other addresses.
The attachment is my patch for network_support.c for reference.
Looks pretty reasonable to me. All that remains is to add the CDL option
for CYGHWR_NET_DRIVER_ETH1_ADDRS_DNS_SERVER, write a ChangeLog entry and
submit it to <ecos-patches@sources.redhat.com> and I'll commit it for you.
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss