[PATCH 3/6] net: add nameserver and domainname to net devices

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Apr 15 09:29:11 EDT 2012


On 15:43 Sun 15 Apr     , Sascha Hauer wrote:
> On Sun, Apr 15, 2012 at 03:20:44PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 15:26 Sun 15 Apr     , Sascha Hauer wrote:
> > > This adds nameserver and domainname to net devices. This may not
> > > be 100% correct since the nameserver and domainname are not network
> > > device specific. However, we currently do not have the possibility
> > > for global variables. DNS support depends on the nameserver/domainname
> > > to be set correctly. When we set both inside a script the variables
> > > will not be available to the parent context, so use device parameters
> > > which are global.
> > 
> > how about put it at bus level instead?
> > 
> > I get an issue is what happened if we have 2 ethernet?
> > 
> > and switch from one to the other?
> 
> I am aware of this issue, but what do you mean with 'put it at bus
> level?'
> 
> I thought about adding a device named 'net' which would only exist to
> store these variables. Is that what you mean?
yes exactly

Best Regards,
J.



More information about the barebox mailing list