Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/net



On Fri, Aug 14, 2009 at 11:13:19PM +0200, Manuel Bouyer wrote:
> On Fri, Aug 14, 2009 at 01:59:57PM -0500, David Young wrote:
> > On Fri, Aug 14, 2009 at 08:16:05PM +0200, Manuel Bouyer wrote:
> > > On Fri, Aug 14, 2009 at 12:48:13PM -0500, David Young wrote:
> > > > > does it work for xvif interfaces?  cf. PR/35074
> > > > 
> > > > Probably not.  Thanks for bringing this case to my attention.
> > > > 
> > > > I could change illegal characters in if_xname to dashes or to
> > > > underscores in the sysctl node name.  Or I could name the node after the
> > > > if_index instead of after the if_xname, if the if_xname contains illegal
> > > > characters.  I guess that I like the latter idea better.  What do you
> > > > think?
> > > 
> > > How do you match if_xname to if_index if you use if_index for
> > > the sysctl node name ?
> > 
> > I was thinking about that, too.  I could add a 'name' node, too:
> > 
> > net.interfaces.3.name=xvif0.0
> > net.interfaces.3.sndq.maxlen=...
> 
> sure, that would work.

Except for the fact that a sysctl node name cannot begin with a digit.

I have code for the following.  IMO, it is gross, but it does the job:

net.interfaces.bridge0.name = bridge0
net.interfaces.bridge0.sndq.len = 0
net.interfaces.bridge0.sndq.maxlen = 256
net.interfaces.bridge0.sndq.drops = 0
net.interfaces.index5.name = xvif1.0
net.interfaces.index5.sndq.len = 0
net.interfaces.index5.sndq.maxlen = 512
net.interfaces.index5.sndq.drops = 0

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index