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:
- [PATCH] fix usb off by one Paolo Abeni (Oct 15)
- Re: [PATCH] fix usb off by one Guy Harris (Oct 15)
- Re: [PATCH] fix usb off by one Joerg Mayer (Oct 23)
- Re: [PATCH] fix usb off by one ronnie sahlberg (Oct 24)