From owner-freebsd-stable@FreeBSD.ORG Fri Jun 22 08:50:12 2012 Return-Path: Delivered-To: Freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 00BB4106564A; Fri, 22 Jun 2012 08:50:12 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id 581E28FC17; Fri, 22 Jun 2012 08:50:11 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id q5M8o8nG084712; Fri, 22 Jun 2012 15:50:08 +0700 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4FE431C0.8040509@rdtc.ru> Date: Fri, 22 Jun 2012 15:50:08 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Devin Teske References: <2322BE6D-24A8-4F4A-84B2-4DFE33BCA65B@fisglobal.com> <4FE3EB9D.9070509@fuzzwad.org> <4FE419CD.60708@rdtc.ru> <4FE4245C.3040806@rdtc.ru> <90361FE2-2298-48E5-B8B6-2BA704781098@fisglobal.com> In-Reply-To: <90361FE2-2298-48E5-B8B6-2BA704781098@fisglobal.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Ron McDowell , Freebsd-stable@freebsd.org Subject: Re: [CFT] Need Testers for: sysutils/bsdconfig X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 08:50:12 -0000 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.