[ECOS] build_bootp_record() support dns server address
Jonathan Larmour
jifl@eCosCentric.com
Thu Jan 9 06:55:00 GMT 2003
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
More information about the Ecos-discuss
mailing list