aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-06-06 19:03:39 +0000
committerGuy Harris <guy@alum.mit.edu>2002-06-06 19:03:39 +0000
commit358df4f2f41cafabde1d00b3b36ff2068c083a48 (patch)
tree23dc08913529bfd26480e44453f33ba2d2a4dc9e /capture.c
parent7acc6a8e1a2a1992259ab35c0bc39b9ac5ba1e52 (diff)
downloadwireshark-358df4f2f41cafabde1d00b3b36ff2068c083a48.tar.gz
wireshark-358df4f2f41cafabde1d00b3b36ff2068c083a48.tar.bz2
wireshark-358df4f2f41cafabde1d00b3b36ff2068c083a48.zip
From Michael Tuexen: remove the old workaround for "select()"s not
working on MacOS X. It appears that the underlying problem with the timeout was that we weren't treating MacOS X as a BSD, and the "select()" we were doing presumably wasn't working as it doesn't work on BPF devices on many BSDs; the workaround no longer appears to be necessary, with Michael's fix to treat MacOS X as BSD. (Presumably a select timeout with "tv_usec" set to 1000*1000 microseconds was treated as an error, or otherwise treated in such a way that it didn't block waiting for the BPF device to say it could be read.) svn path=/trunk/; revision=5637
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/capture.c b/capture.c
index f6bfc620bf..13948bd4e1 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.176 2002/06/04 22:15:12 guy Exp $
+ * $Id: capture.c,v 1.177 2002/06/06 19:03:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1012,21 +1012,8 @@ signame(int sig)
/*
* Timeout, in milliseconds, for reads from the stream of captured packets.
- *
- * XXX - Michael Tuexen says MacOS X's BPF appears to be broken, in that
- * if you use a timeout of 250 in "pcap_open_live()", you don't see
- * packets until a large number of packets arrive; the timeout doesn't
- * cause a smaller number of packets to be delivered. Perhaps a timeout
- * that's less than 1 second acts like no timeout at all, so that you
- * don't see packets until the BPF buffer fills up?
- *
- * The workaround is to use a timeout of 1000 seconds on MacOS X.
*/
-#ifdef __APPLE__
-#define CAP_READ_TIMEOUT 1000
-#else
#define CAP_READ_TIMEOUT 250
-#endif
#ifndef _WIN32
/* Take carre of byte order in the libpcap headers read from pipes.