]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix cut-and-pasteos; thanks to Darren Reed for finding them.
authorguy <guy>
Sun, 21 Mar 2004 08:32:05 +0000 (08:32 +0000)
committerguy <guy>
Sun, 21 Mar 2004 08:32:05 +0000 (08:32 +0000)
pcap-nit.c
pcap-snoop.c

index e89f9ba21dd47121ddce4b7f7c62ce6a574e2239..ae4c40cb7867bbb526a3c968c055d470c971728b 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.54 2003-12-18 23:32:32 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.55 2004-03-21 08:32:05 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -281,7 +281,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
        }
 
        /*
-        * "handle->fd" is a socket, so "select()" should work on it.
+        * "p->fd" is a socket, so "select()" should work on it.
         */
        p->selectable_fd = p->fd;
 
index 7ea8394efaf798c5ba1d10b7b3475fa5cf7dcaae..d847444fbab8315b9a4dbdf94489679435f3c12a 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.50 2003-12-18 23:32:33 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.51 2004-03-21 08:32:06 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -257,14 +257,14 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
                 * as well; what are "cip" devices - some other ATM
                 * Classical IP devices?
                 */
-               handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
+               p->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
                /*
                 * If that fails, just leave the list empty.
                 */
-               if (handle->dlt_list != NULL) {
-                       handle->dlt_list[0] = DLT_EN10MB;
-                       handle->dlt_list[1] = DLT_DOCSIS;
-                       handle->dlt_count = 2;
+               if (p->dlt_list != NULL) {
+                       p->dlt_list[0] = DLT_EN10MB;
+                       p->dlt_list[1] = DLT_DOCSIS;
+                       p->dlt_count = 2;
                }
        } else if (strncmp("ipg", device, 3) == 0 ||
                   strncmp("rns", device, 3) == 0 ||    /* O2/200/2000 FDDI */
@@ -353,7 +353,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
        }
 
        /*
-        * "handle->fd" is a socket, so "select()" should work on it.
+        * "p->fd" is a socket, so "select()" should work on it.
         */
        p->selectable_fd = p->fd;