aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authorguy <guy>2005-04-17 17:25:51 +0000
committerguy <guy>2005-04-17 17:25:51 +0000
commit14f186752d9224a4d499bae322777fc9ef86ba26 (patch)
tree1545d48206e005502a018216e1895703560167d7 /pcap-dlpi.c
parentad93efab7caddc85035e30a6ede0f45c825955ae (diff)
If we get EBUSY when binding to a SAP, clear out the error string we get
from it, so that our caller doesn't treat it as a warning.
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index 1fcb0f6..22c1dfd 100644
--- a/pcap-dlpi.c
+++ b/pcap-dlpi.c
@@ -70,7 +70,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.112 2005-04-17 17:18:03 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.113 2005-04-17 17:25:51 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -1043,8 +1043,11 @@ dl_dohpuxbind(int fd, char *ebuf)
/*
* For EBUSY, try the next SAP value; that means that
- * somebody else is using that SAP.
+ * somebody else is using that SAP. Clear ebuf so
+ * that application doesn't report the "Device busy"
+ * error as a warning.
*/
+ *ebuf = '\0';
hpsap++;
if (hpsap > 100)
return (-1);