tcpdump mailing list archives
Re: [PATCH] fix usb off by one
From: Guy Harris <guy () alum mit edu>
Date: Sun, 15 Oct 2006 11:22:57 -0700
Paolo Abeni wrote:
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.
8 bits for tv_sec? Yes, it's somewhat misleading to assert that the world ended at 00:04:16 GMT on January 1, 1970. :-)
(Well, actually, with 24 bits for tv_usec, it would *almost* be 00:04:17.) Checked in. - 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)
