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
|