From owner-freebsd-net Mon Jun 10 11:45:30 2002 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id A50F537B40B for ; Mon, 10 Jun 2002 11:45:27 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g5AIjKDK081778; Mon, 10 Jun 2002 14:45:20 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g5AIjJTE081775; Mon, 10 Jun 2002 14:45:20 -0400 (EDT) (envelope-from wollman) Date: Mon, 10 Jun 2002 14:45:20 -0400 (EDT) From: Garrett Wollman Message-Id: <200206101845.g5AIjJTE081775@khavrinen.lcs.mit.edu> To: Andy Sparrow Cc: freebsd-net@FreeBSD.ORG Subject: Re: MIB support for network devices in FreeBSD? In-Reply-To: <20020609035146.55A8F3E2D@CRWdog.demon.co.uk> References: <1023592304.349.20.camel@lerlaptop> <20020609035146.55A8F3E2D@CRWdog.demon.co.uk> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org < said: > datamib[5] = IFDATA_GENERAL; > *ip = drvdata->ifmd_data.ifi_ipackets; > *op = drvdata->ifmd_data.ifi_opackets; > *ib = drvdata->ifmd_data.ifi_ibytes; > *ob = drvdata->ifmd_data.ifi_obytes; The ``general'' part of the interface MIB is implemented by generic code in net/if_mib.c, and uses the same counters as (e.g.) `netstat' examines. IWBRNI more drivers implemented the medium-specific MIB, but that's not necessary to provide this information. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message