From owner-freebsd-arch@FreeBSD.ORG Tue Oct 3 23:47:12 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E7BB16A412; Tue, 3 Oct 2006 23:47:12 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4F5243D7B; Tue, 3 Oct 2006 23:46:58 +0000 (GMT) (envelope-from max@love2party.net) Received: from [88.64.186.220] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1GUtyT1qxW-000138; Wed, 04 Oct 2006 01:46:57 +0200 From: Max Laier Organization: FreeBSD To: Andrew Thompson Date: Wed, 4 Oct 2006 01:46:50 +0200 User-Agent: KMail/1.9.4 References: <20061003232716.GJ21444@heff.fud.org.nz> In-Reply-To: <20061003232716.GJ21444@heff.fud.org.nz> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6171035.DySEkAkHLK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610040146.56246.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: freebsd-arch@freebsd.org Subject: Re: where to put extra RSTP info X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 23:47:12 -0000 --nextPart6171035.DySEkAkHLK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 04 October 2006 01:27, Andrew Thompson wrote: > The new RSTP code I have been working on has more info that can be > shown and tweaked by the network admin when setting up the layer2 topo. > I now have the problem of what utility to stuff it into. > > a) ifconfig > b) netstat > c) some new util like bridgestat > > I realise that ifconfig is for setting the interface config and should > not be abused. I don't think this is true anymore. Our ifconfig has moved to a more=20 complex management app since the merge with wicontrol (or since we=20 imported wicontrol functionality into ifconfig) - and I think this is a=20 good trend. Instead of having many different config apps for each type=20 of interface. You could hide the less interesting information behind -v=20 or a new switch in order to not pollute ifconfig's default use case too=20 much. > I am tempted to add a new util, here is an example of > what I need to show. > > Spanning Tree Parameters for bridge0 > Protocol : IEEE 802.1W (Rapid STP), > Priority : 32768 (0x8000), > Bridge ID : 8000-00:d0:95:8e:56:7e, > Designated Root : 8000-00:04:75:d1:f8:98, > Cost to Root Bridge : 0, > Root Port : None, > Next Best Root Cost : 100, > Next Best Root Port : 8000-00:d0:95:aa:bb:cc, > Hold Time : 1, > Topology Changes : 98, > Topology age : 5:02:36 > > Interface 1 > Role : Designated > Link type : Point to Point > ... > > Interface 2 > Role : Alternate > Link type : Shared > ... At least the short per-interface status certainly belongs into ifconfig's=20 default output - IMHO. > Any suggestions? I'd go for a new switch to ifconfig, that takes an interface name as=20 (optional) argument and then prints above information (for the bridge=20 specified in the argument). =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart6171035.DySEkAkHLK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFIvZwXyyEoT62BG0RAoaPAJ9RrWXCGKWf4MEX/EirmQ9lunY14gCcDwjK 39+DaaNylErKY4iDriXyjqY= =kRY0 -----END PGP SIGNATURE----- --nextPart6171035.DySEkAkHLK--