Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2002 14:45:20 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Andy Sparrow <spadger@best.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: MIB support for network devices in FreeBSD? 
Message-ID:  <200206101845.g5AIjJTE081775@khavrinen.lcs.mit.edu>
In-Reply-To: <20020609035146.55A8F3E2D@CRWdog.demon.co.uk>
References:  <ler@lerctr.org> <1023592304.349.20.camel@lerlaptop> <20020609035146.55A8F3E2D@CRWdog.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 08 Jun 2002 23:51:46 -0400, Andy Sparrow <spadger@best.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206101845.g5AIjJTE081775>