aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authormcr <mcr>2000-01-25 02:25:04 +0000
committermcr <mcr>2000-01-25 02:25:04 +0000
commit06865e0f1e94c7935c3a763195fecba1ea0383cb (patch)
tree93ef0b53b443964e63a028fe31551e440f17e71f /pcap-dlpi.c
parent3271bef083ec1b7c530ef45dc0feb86a07af1ed0 (diff)
bumped version to 0.5
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index 7d09894..dee8e7d 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.52 1999-10-07 23:46:40 mcr Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.53 2000-01-25 02:25:04 mcr Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -314,7 +314,14 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
** using SINIX)
*/
#if !defined(HAVE_HPUX9) && !defined(HAVE_HPUX10_20) && !defined(sinix)
+#ifdef _AIX
+ /* According to IBM's AIX Support Line, the dl_sap value
+ ** should not be less than 0x600 (1536) for standard ethernet
+ */
+ if (dlbindreq(p->fd, 1537, ebuf) < 0 ||
+#else
if (dlbindreq(p->fd, 0, ebuf) < 0 ||
+#endif
dlbindack(p->fd, (char *)buf, ebuf) < 0)
goto bad;
#endif