From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 08:52:34 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CA8C16A420; Tue, 14 Feb 2006 08:52:34 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id B102543D5C; Tue, 14 Feb 2006 08:52:32 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k1E8qUYs067511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Feb 2006 11:52:31 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k1E8qUDR067510; Tue, 14 Feb 2006 11:52:30 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 14 Feb 2006 11:52:30 +0300 From: Gleb Smirnoff To: Harti Brandt Message-ID: <20060214085230.GO86448@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Harti Brandt , Anders Nordby , freebsd-net@freebsd.org, demon@freebsd.org, kuriyama@freebsd.org References: <20060206092443.GA61116@totem.fix.no> <20060207141131.GU877@FreeBSD.org> <20060213173008.GA14643@totem.fix.no> <20060214090531.X5083@beagle.kn.op.dlr.de> <20060214083010.GB41864@totem.fix.no> <20060214093513.F5083@beagle.kn.op.dlr.de> <20060214084459.GL86448@cell.sick.ru> <20060214094812.T5083@beagle.kn.op.dlr.de> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060214094812.T5083@beagle.kn.op.dlr.de> User-Agent: Mutt/1.5.6i Cc: freebsd-net@FreeBSD.org, Anders Nordby , kuriyama@FreeBSD.org, demon@FreeBSD.org Subject: Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 08:52:34 -0000 On Tue, Feb 14, 2006 at 09:50:58AM +0100, Harti Brandt wrote: H> GS>On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: H> GS>H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port H> GS>H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces? H> GS>H> AN>Why so? H> GS>H> H> GS>H> The driver reports a speed of 10Mbits/sec. ifHighSpeed is ifi_baudrate H> GS>H> divided by 10^6 (and rounded). This is the default set by ether_ifattach() H> GS>H> if the driver did not set another value. It seems that bge never sets that H> GS>H> value so you end up with the default. This looks like a bug. H> GS> H> GS>Harti, we are thinking in parallel :) H> H> :-) H> H> GS>Andres, pls try the attached patch. H> H> I wonder however, whether this could be done somewhere in mii? When H> setting ifmedia also the speed could be set. In this case SNMP would H> report the actual current speed. Yes, this should be next step. Afaik, no driver currently does this. I'll look at this. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE