]> The Tcpdump Group git mirrors - libpcap/commitdiff
From Jesper Peterson: fix a cut-and-pasteo (the Linux libpcap code calls libpcap-0.8-bp
authorguy <guy>
Wed, 5 Nov 2003 04:25:24 +0000 (04:25 +0000)
committerguy <guy>
Wed, 5 Nov 2003 04:25:24 +0000 (04:25 +0000)
its pcap_t pointer "handle", not "p", unlike most other libpcap code).

pcap-linux.c

index 6120b67be209d2316fdb35e59e0e46ab207d8b65..520ddacbefe91f3444d2736bc5c596fad43aaa0b 100644 (file)
@@ -27,7 +27,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.97 2003-11-04 07:05:34 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.98 2003-11-05 04:25:24 guy Exp $ (LBL)";
 #endif
 
 /*
@@ -465,13 +465,13 @@ pcap_read_packet(pcap_t *handle, pcap_handler callback, u_char *userdata)
                /*
                 * Has "pcap_breakloop()" been called?
                 */
-               if (p->break_loop) {
+               if (handle->break_loop) {
                        /*
                         * Yes - clear the flag that indicates that it
                         * has, and return -2 as an indication that we
                         * were told to break out of the loop.
                         */
-                       p->break_loop = 0;
+                       handle->break_loop = 0;
                        return -2;
                }
                fromlen = sizeof(from);