]> The Tcpdump Group git mirrors - libpcap/commitdiff
From Albert Chin: fix a typo and a cut-and-pasteo.
authorguy <guy>
Tue, 19 Apr 2005 00:56:06 +0000 (00:56 +0000)
committerguy <guy>
Tue, 19 Apr 2005 00:56:06 +0000 (00:56 +0000)
pcap-pf.c

index 23f015353324a85b40e1ef3815de1b3fd8d61783..4df27610f716bb3ae8975ff05199407aef0b2c83 100644 (file)
--- a/pcap-pf.c
+++ b/pcap-pf.c
@@ -24,7 +24,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-pf.c,v 1.91 2005-02-26 21:58:06 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-pf.c,v 1.91.2.1 2005-04-19 00:56:06 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -129,7 +129,7 @@ pcap_read_pf(pcap_t *pc, int cnt, pcap_handler callback, u_char *user)
         */
        n = 0;
 #ifdef PCAP_FDDIPAD
-       pad = p->fddipad;
+       pad = pc->fddipad;
 #endif
        while (cc > 0) {
                /*
@@ -191,7 +191,7 @@ pcap_read_pf(pcap_t *pc, int cnt, pcap_handler callback, u_char *user)
                 *
 #ifdef PCAP_FDDIPAD
                 * Note: the filter code was generated assuming
-                * that p->fddipad was the amount of padding
+                * that pc->fddipad was the amount of padding
                 * before the header, as that's what's required
                 * in the kernel, so we run the filter before
                 * skipping that padding.
@@ -448,7 +448,7 @@ your system may not be properly configured; see the packetfilter(4) man page\n",
        /* set truncation */
 #ifdef PCAP_FDDIPAD
        if (p->linktype == DLT_FDDI) {
-               p->fddipad = PCAP_FDDIPAD:
+               p->fddipad = PCAP_FDDIPAD;
 
                /* packetfilter includes the padding in the snapshot */
                snaplen += PCAP_FDDIPAD;