blob: e6dadd25c67cfe1bc451b69b4c02bef37c105c3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- pcap-bpf.c.orig 2008-10-10 19:42:44.000000000 -0700
+++ pcap-bpf.c 2009-09-01 19:54:11.000000000 -0700
@@ -1860,7 +1860,7 @@
* (Treating it as such doesn't fix the timeout
* problem described below.)
*/
- struct timeval to;
+ struct BPF_TIMEVAL to;
to.tv_sec = p->md.timeout / 1000;
to.tv_usec = (p->md.timeout * 1000) % 1000000;
if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) {
|