From owner-freebsd-arch@FreeBSD.ORG Tue Oct 3 23:27:20 2006 Return-Path: X-Original-To: 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 0B8B216A403 for ; Tue, 3 Oct 2006 23:27:20 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from grunt5.ihug.co.nz (grunt5.ihug.co.nz [203.109.254.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 381AB43D49 for ; Tue, 3 Oct 2006 23:27:19 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from 203-109-251-39.static.bliink.ihug.co.nz (heff.fud.org.nz) [203.109.251.39] by grunt5.ihug.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1GUtfR-0002vU-00; Wed, 04 Oct 2006 12:27:17 +1300 Received: by heff.fud.org.nz (Postfix, from userid 1001) id DF9A21CC25; Wed, 4 Oct 2006 12:27:16 +1300 (NZDT) Date: Wed, 4 Oct 2006 12:27:16 +1300 From: Andrew Thompson To: arch@freebsd.org Message-ID: <20061003232716.GJ21444@heff.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: 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:27:20 -0000 Hi, 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 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 ... Any suggestions? Andrew