aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-09-17 03:20:05 +0000
committerGuy Harris <guy@alum.mit.edu>2000-09-17 03:20:05 +0000
commitd0caa40dec43ac590d9424657354a32ee8b2f3df (patch)
tree94dcbc45474e57d8b3591133eb17b289389b76cc /capture.c
parent7924dd26fae792ff7e4a95fe5a4ace8a1b04309f (diff)
libpcap unconditionally includes <net/if.h> on UNIX systems, as that is,
as far as I know, the only way to get IFF_UP, IFF_LOOPBACK, "struct ifreq", and "struct ifconf" defined, and those are required in order to get, via SIOCGIFCONF, the interface list, and to exclude interfaces that aren't up and handle loopback interfaces differently from other interfaces. If we're on UNIX and have libpcap, we should do the same; that way, if the system doesn't have <net/if.h> installed, the compile will fail with an "I can't find <net/if.h>" error, rather than the configure indicating that <net/if.h> can't be found, causing "util.c" not to include it, causing it to fail with complaints about IFF_UP, IFF_LOOPBACK, and various structures not being defined - the former tells you the root cause, the latter doesn't. svn path=/trunk/; revision=2442
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/capture.c b/capture.c
index ff4ca3aa9e..1c15ab9e3f 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.125 2000/09/15 05:32:18 guy Exp $
+ * $Id: capture.c,v 1.126 2000/09/17 03:20:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -69,10 +69,6 @@
#include <sys/ioctl.h>
#endif
-#ifdef HAVE_NET_IF_H
-#include <net/if.h>
-#endif
-
#include <signal.h>
#include <errno.h>