From owner-freebsd-net@FreeBSD.ORG Mon Nov 16 18:05:19 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 525DA1065672 for ; Mon, 16 Nov 2009 18:05:19 +0000 (UTC) (envelope-from gigabyte.tmn@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id F25A88FC1B for ; Mon, 16 Nov 2009 18:05:18 +0000 (UTC) Received: by qyk6 with SMTP id 6so2569525qyk.3 for ; Mon, 16 Nov 2009 10:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:reply-to:from:to :subject:date:organization:mime-version:content-type:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=CIRbdhIyMYIZqjIL8/576NchQsRm9wmwR3mz1Tqy+nc=; b=Cgs8vD0H5xZ3E8UapItl3rhWjK5F5z9R9+lDkDAbgfQel1aw2D9mrjg4h0DAbMnqgk aYXP7jHKoBqH9k8ke1VQC8Rqu9I0EoAimlGa9X2O9z486ChuHwvqBbuFLlwT2mWsKtjb 0aiz9dqW2um39ZxA/CEenVAPpMNgKN5FIL/V0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:reply-to:from:to:subject:date:organization:mime-version :content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=q+kepIu5WqwnlFdDQfW7emQyep7+HZ0+78MDDyc4el5qp78q9Sp0baevzOSYeQdaq9 9XGQiqaJX1iAIsNG7Zxuh+ulWTbTSpKWJ1PBRI0QoOIf30N2d+F9cIaW+QckE5NlDFkM znZ/cvToGBikLga6n8Ppoic/lEO0HwTTN0Efo= Received: by 10.213.0.131 with SMTP id 3mr1924371ebb.68.1258394717526; Mon, 16 Nov 2009 10:05:17 -0800 (PST) Received: from dm ([91.211.192.225]) by mx.google.com with ESMTPS id 24sm5870259eyx.37.2009.11.16.10.05.15 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Nov 2009 10:05:16 -0800 (PST) Message-ID: <001201ca66e7$5a3e20a0$1e010a0a@in72.ru> From: "Dmitriy Zamuraev" To: Date: Mon, 16 Nov 2009 23:05:14 +0500 Organization: Netline NSP MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: bsnmpd HighCounters on if_lagg X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitriy Zamuraev List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 18:05:19 -0000 I have BRAS based on FreeBSD 7.2 and mpd 5.3 and three NIC's grouped = into if_lagg with LACP, I need to monitor bandwidth with bsnmpd and cacti, by default lagg = interface baud rate is 10Mbitps, so bsnmpd can't collect Counter64 on this interface. I'm modify if_lagg.c file: function lagg_link_state(): u_long new_baudrate; SLIST_FORAECH(lp, &sc_ports, lp_entries) if (lp->lp_link_state =3D=3D LINK_STATE_UP) new_baudrate +=3D lp->lp_ifp->if_baudrate; sc->sc_ifp->if_baudrate =3D new_baudrate; So, bsnmpd shows ifHighSpeed and ifHC(In|Out)Octets. I'm happy. Also i have if_vlan interfaces over the if_lagg, and vlan interfaces = have baud rate 10Mbitps too. I don't need Counter64 functionality on vlan interfaces, but i think = develop this functionality is difficult. Please, tell me who needs this functionality.