Subject: Re: Interface traffic timestamps
To: Martin Husemann <martin@duskware.de>
From: Jonathan Stone <jonathan@dsg.stanford.edu>
List: tech-kern
Date: 06/11/2004 15:42:43
In message <20040611224014.GA16781@drowsy.duskware.de>,
Martin Husemann writes:

>On Fri, Jun 11, 2004 at 11:35:07AM -0700, Jason Thorpe wrote:
>> Yah, perhaps seconds is good enough ... then you pretty much definitely 
>> do not have to worry about spl frobbing for a decent "ballpark" 
>> timestamp.
>
>Yes - seconds is good enough and I would just not do any locking - but
>overall this all sounds hackish and I'm open to suggestions for better
>ways.

So wrap it in a macro. Write a macro (or inline function in sys/net/if.h)
which takes a struct ifnet *, and DTRT.  Whatever that may become, over time.