Date: Fri, 22 Jun 2012 15:50:08 +0700 From: Eugene Grosbein <egrosbein@rdtc.ru> To: Devin Teske <dteske@freebsd.org> Cc: Ron McDowell <rcm@fuzzwad.org>, Freebsd-stable@freebsd.org Subject: Re: [CFT] Need Testers for: sysutils/bsdconfig Message-ID: <4FE431C0.8040509@rdtc.ru> In-Reply-To: <90361FE2-2298-48E5-B8B6-2BA704781098@fisglobal.com> References: <2322BE6D-24A8-4F4A-84B2-4DFE33BCA65B@fisglobal.com> <4FE3EB9D.9070509@fuzzwad.org> <4FE419CD.60708@rdtc.ru> <F34D40AA-3AE4-4A1F-B521-CEC2A06ABC79@fisglobal.com> <4FE4245C.3040806@rdtc.ru> <90361FE2-2298-48E5-B8B6-2BA704781098@fisglobal.com>
next in thread | previous in thread | raw e-mail | index | archive | help
22.06.2012 15:39, Devin Teske wrote: >>>> 5. Same for vlan16. For vlan9 is shows right 'IEEE 802.1Q VLAN network interface'. >>>> It should work same way for vlan1-vlan4095 interfaces at least. >>>> >>> >>> I'd like to know if the sysctl MIB's for describing network interfaces is reliable. Maybe I'll keep the static list as a fallback. But yes, you're absolutely right -- I should have supported up to 5 digits even (ifconfig has internal limits of 16-bit unsigned integer for the interface instance-number). >>> >>> >>>> 6. Same for ipfw0 pseudo-interface. >>>> >>> >>> Curious what sysctl says about it. >> >> I do not know what sysctl subtree do you refer to. >> > > If you're using em(4) device, try: > > sysctl dev.em.0.%desc > > Otherwise (for example), if using fxp(4), try: > > sysctl dev.fxp.0.%desc > > Or for your vlan: > > sysctl dev.vlan.16.%desc > > And try for your ipfw(4) interface: > > sysctl dev.ipfw.0.%desc > > Are each of those meaningful? > > NOTE: They aren't available unless you have the hardware -- so I can't (for example) try "sysctl dev.fxp.0.%desc" unless I have an fxp0 device displayed in ifconfig(8). That's driver-dependent. For example, lagg does not presents %desc nor ipfw0 and I suppose pretty many others do not. You could use %desc if it's present and fall back to internal static list otherwise.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE431C0.8040509>