]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix some compile errors.
authorguy <guy>
Sat, 5 Apr 2008 05:25:38 +0000 (05:25 +0000)
committerguy <guy>
Sat, 5 Apr 2008 05:25:38 +0000 (05:25 +0000)
pcap-dlpi.c

index 75375946c32ba9b99bdd50a7d0698c5f9485dd6f..8301c37c6f6f476f6787269866d7c7d881e58051 100644 (file)
@@ -70,7 +70,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.121 2008-04-04 19:37:45 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.122 2008-04-05 05:25:38 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -467,7 +467,7 @@ pcap_activate_dlpi(pcap_t *p)
                                 * symptom of that inability.
                                 */
                                snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
-                                   "%s: No DLPI device found", device);
+                                   "%s: No DLPI device found", p->opt.source);
                        } else {
                                snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s: %s",
                                    dname2, pcap_strerror(errno));
@@ -506,7 +506,7 @@ pcap_activate_dlpi(pcap_t *p)
         * Enable Passive mode to be able to capture on aggregated link.
         * Not supported in all Solaris versions.
         */
-       dlpassive(p->fd, ebuf);
+       dlpassive(p->fd, p->errbuf);
 #endif
        /*
        ** Bind (defer if using HP-UX 9 or HP-UX 10.20 or later, totally
@@ -655,7 +655,7 @@ pcap_activate_dlpi(pcap_t *p)
                goto bad;
 
        infop = &((union DL_primitives *)buf)->info_ack;
-       if (pcap_process_mactype(p, infop->dl_mac_type, p->errbuf) != 0)
+       if (pcap_process_mactype(p, infop->dl_mac_type) != 0)
                goto bad;
 
 #ifdef DLIOCRAW