netdev
[Top] [All Lists]

Re: Zeroing interface stats?

To: Andrew Morton <andrewm@xxxxxxxxxx>
Subject: Re: Zeroing interface stats?
From: jamal <hadi@xxxxxxxxxx>
Date: Mon, 5 Mar 2001 22:35:25 -0500 (EST)
Cc: <netdev@xxxxxxxxxxx>
In-reply-to: <3AA45442.4980994B@uow.edu.au>
Sender: owner-netdev@xxxxxxxxxxx

On Tue, 6 Mar 2001, Andrew Morton wrote:

> jamal wrote:
> >
> > On Tue, 6 Mar 2001, Andrew Morton wrote:
> >
> > Infact i think what the acenic is doing is illegal. These stats are used
> > by SNMP.
> > IIRC, if you have to zero the stats you also must reset the ifindex.
> > Someone double check the SNMP RFCs.
>
> I've seen you use this `ifindex' term before.  What is it, and
> what is its role in life?

-- interface index , retrievable via SIOCGIFINDEX
   ^    ^    ^^^^^
A unique identifier for a "net link". Represented in Linux as dev->ifindex
Theoretically, also an index into a ifTable (a table of interfaces, on
linux you walk a list of course) to retrieve an ifEntry ;->
an IfEntry holds all the SNMP parameters + a lot more in Linux.
In Linux one can look at IfEntry as a netdev struct.


cheers,
jamal




<Prev in Thread] Current Thread [Next in Thread>