This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Redboot DHCP
On Tue, Nov 04, 2003 at 08:18:09AM -0800, John Newlin wrote:
> oops, forgot to include ecos group
>
> John Newlin wrote:
>
> >These 2 options:
> >CYGPKG_REDBOOT_NETWORKING_DNS
> >and
> >CYGPKG_NS_DNS?
> >
> >or are there more? So many to choose from.
It should work out these options itself. Just add the DNS package to
the configuration.
> >Also in the DHCP code there is a loop that goes over the returned
> >options and picks off the subnet, gateway, but does not pick up the
> >DNS server:
> >
> >#ifdef CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY
> > case TAG_SUBNET_MASK: // subnet mask
> > memcpy(__local_ip_mask,p,4);
> > break;
> > case TAG_GATEWAY: // router
> > memcpy(__local_ip_gate,p,4);
> > break;
> >#endif
> >
> >
> >I was going to add a:
> >case TAG_DNS:
> > // copy in the DNS server address
> > break;
Seems reasonable.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss