aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authorguy <guy>2001-11-17 21:07:59 +0000
committerguy <guy>2001-11-17 21:07:59 +0000
commitee923fedbb768d9f6e60ae9507f36d6a1fa5c29d (patch)
tree62e07aaadb6a02e140fdf6e6ddb30c4740c96f54 /pcap-dlpi.c
parente935ae54256f4a557e5cd23b6d2aa8b34e178b5c (diff)
AIX's DLPI devices are, at least in AIX 4.3 and later, in the
"/dev/dlpi" directory, not the "/dev" directory.
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index 8d99f2b..7a4660b 100644
--- a/pcap-dlpi.c
+++ b/pcap-dlpi.c
@@ -38,7 +38,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.72 2001-11-11 22:32:28 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.73 2001-11-17 21:07:59 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -89,8 +89,12 @@ static const char rcsid[] =
#endif
#ifndef PCAP_DEV_PREFIX
+#ifdef _AIX
+#define PCAP_DEV_PREFIX "/dev/dlpi"
+#else
#define PCAP_DEV_PREFIX "/dev"
#endif
+#endif
#define MAXDLBUF 8192