From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 08:51:00 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 186F416A420; Tue, 14 Feb 2006 08:51:00 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-3.dlr.de (smtp-3.dlr.de [195.37.61.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE85C43D5E; Tue, 14 Feb 2006 08:50:56 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-3.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Tue, 14 Feb 2006 09:50:55 +0100 Date: Tue, 14 Feb 2006 09:50:58 +0100 (CET) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Gleb Smirnoff In-Reply-To: <20060214084459.GL86448@cell.sick.ru> Message-ID: <20060214094812.T5083@beagle.kn.op.dlr.de> 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 14 Feb 2006 08:50:55.0632 (UTC) FILETIME=[C485F100:01C63143] 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 Reply-To: Harti Brandt 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:51:00 -0000 On Tue, 14 Feb 2006, Gleb Smirnoff wrote: GS>On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: GS>H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port GS>H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces? GS>H> AN>Why so? GS>H> GS>H> The driver reports a speed of 10Mbits/sec. ifHighSpeed is ifi_baudrate GS>H> divided by 10^6 (and rounded). This is the default set by ether_ifattach() GS>H> if the driver did not set another value. It seems that bge never sets that GS>H> value so you end up with the default. This looks like a bug. GS> GS>Harti, we are thinking in parallel :) :-) GS>Andres, pls try the attached patch. I wonder however, whether this could be done somewhere in mii? When setting ifmedia also the speed could be set. In this case SNMP would report the actual current speed. harti