dev.* analogue for interfaces

Brooks Davis brooks at freebsd.org
Thu Feb 21 15:24:15 UTC 2008


On Thu, Feb 21, 2008 at 10:07:08AM +0000, Robert Watson wrote:
> On Wed, 20 Feb 2008, Dag-Erling Sm?rgrav wrote:
> 
>> Robert Watson <rwatson at FreeBSD.org> writes:
>> 
>>> We also support interface renaming...  Does newbus mind if you rename the 
>>> devices in its tree?
>> 
>> I'm not sure whether you're replying to my proposal or to Julian's 
>> interpretation / extrapolation of it...  but I have no intention of 
>> hooking interfaces into newbus.  I just want a sysctl tree for struct 
>> ifnet like we have a sysctl tree for device_t, to access interface 
>> parameters which are not easily accessible through ifconfig.
> 
> Hmm.  When I look at net/if.c, I don't see renaming support, so perhaps 
> this was just a proposal I was thinking of and not actual code.  In either 
> case, I think the question stands: in a world where interface renaming is 
> supported, is your plan to also rename the if.X sysctl tree created for the 
> interface? Does sysctl have a facility to do this?

I think that one way or another it should be possible to reach the
sysctl by if_index since that is the only stable way to access an
interface though out its life.  I might actually suggest making that the
only way and have if.1.name be available.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20080221/368d849b/attachment.pgp


More information about the freebsd-arch mailing list