[PATCH] Add ioctl to disable bpf timestamping

Guy Helmer ghelmer at palisadesys.com
Wed Sep 8 08:02:42 PDT 2004


Bruce M Simpson wrote:

>Here's a patch against 5.3 to add a per-instance switch which allows
>the user to specify if captured packets should be timestamped (and,
>if so, whether microtime() or the faster but less accurate
>getmicrotime() call should be used).
>  
>
I like the idea (I've been using a hack to call getmicrotime() in bpf in 
my own kernels), but I wonder if it would be better as a sysctl?  Then 
it wouldn't require changes to libpcap and/or tcpdump, and would work 
with any application.

Thanks,
Guy

-- 
Guy Helmer, Ph.D., Principal System Architect, Palisade Systems, Inc.
ghelmer at palisadesys.com
ghelmer at freebsd.org



More information about the freebsd-net mailing list