tcpdump mailing list archives

[PATCH] fix usb off by one


From: Paolo Abeni <paolo.abeni () email it>
Date: Sun, 15 Oct 2006 19:35:36 +0200

hello,

the attached patch fix an off by one in current usb sniffing code. It
also substitute the kernel-provided timestamp with gettimeofday. The
kernel provided timestamp use 32 bits to represent a struct timeval (8
bits for tv_sec and 24 for tv_usec), so it's content is quite
misleading.

ciao,

Paolo

p.s. the gettimeofday syscall give some overhead to the sniffing code,
but currently the text interface provided by the kernel is IMHO the real
bottleneck.


Attachment: usb_off_by_one_fix.patch
Description:

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Current thread: