From 5b0754b7de3272aa4f2dea302b88da33eb6a9d8f Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 7 Apr 2004 07:56:05 +0000 Subject: [PATCH] Having gone through the trouble of creating "dl_doattach()", we might as well use it.... --- pcap-dlpi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pcap-dlpi.c b/pcap-dlpi.c index 6e9392d..c18e01d 100644 --- a/pcap-dlpi.c +++ b/pcap-dlpi.c @@ -62,7 +62,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.100 2004-04-03 20:53:48 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.101 2004-04-07 07:56:05 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -577,13 +577,11 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, isatm = 1; #endif if (infop->dl_provider_style == DL_STYLE2) { - if (dlattachreq(p->fd, ppa, ebuf) < 0 || - dlokack(p->fd, "attach", (char *)buf, ebuf) < 0) + if (dl_doattach(p->fd, ppa, ebuf) < 0) goto bad; #ifdef DL_HP_RAWDLS if (send_fd >= 0) { - if (dlattachreq(p->send_fd, ppa, ebuf) < 0 || - dlokack(p->send_fd, "attach", (char *)buf, ebuf) < 0) + if (dl_doattach(p->send_fd, ppa, ebuf) < 0) < 0) goto bad; } #endif