proposed new if_data variable

Andre Oppermann andre at freebsd.org
Fri Aug 27 13:08:27 PDT 2004


Brooks Davis wrote:
> 
> I'd like to proposed adding a new variable, ifi_epoch, to struct
> if_data.  It will be set to the time the counters were zeroed,
> currently, the time if_attach was called.  The intent is to provide a
> correct value for RFC2233's ifCounterDiscontinuityTime and to make it
> easier for applications to verify that the interface they are looking at
> is the same one that had this index last time.
> 
> Since this will increase the size of struct if_data and thus struct
> ifnet, the change needs to be made now if it's going to be made for
> 5-STABLE.  Any comments on this idea?

I'm all for it!  Very useful.

-- 
Andre


More information about the freebsd-net mailing list