]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix some typos
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 4 Jul 2022 09:39:26 +0000 (11:39 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 4 Jul 2022 09:39:26 +0000 (11:39 +0200)
[skip ci]

17 files changed:
CHANGES
CMakeLists.txt
configure
configure.ac
extract.h
pcap-dag.c
pcap-linux.c
pcap-npf.c
pcap-septel.c
pcap-sita.c
pcap.3pcap.in
pcap.c
rpcapd/fileconf.c
sf-pcap.c
sockutils.c
testprogs/valgrindtest.c
testprogs/visopts.py

diff --git a/CHANGES b/CHANGES
index 25d51c81e7b278ec929a308e5e9272f2b7e81879..ff2007aa60a1f859e1757562cef0339e337e1f06 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -49,7 +49,7 @@ Monthday, Month DD, YYYY:
     Packet filtering:
       Get PFLOG header length from the length value in the header.
       Support all the direction, reason, and action types supported by
-        all systems that sypport PFLOG.
+        all systems that support PFLOG.
       Don't require PFLOG support on the target machine in order to
         support PFLOG filtering (also fixes issue #1076).
     Linux:
@@ -378,7 +378,7 @@ Sunday, July 22, 2018
         need to be
     Fix reading of capture statistics for Linux USB
     Fix packet size values for Linux USB packets (GitHub issue #808)
-    Check only VID in VLAN test in filterss (GitHub issue #461)
+    Check only VID in VLAN test in filters (GitHub issue #461)
     Fix pcap_list_datalinks on 802.11 devices on macOS
     Fix overflows with very large snapshot length in pcap file
     Improve parsing of rpcapd configuration file (GitHub issue #767)
index 1051b0b1f88be72802fc5c5c5ddd27163d09e21b..f01f7620ef96bb43a1c357c444d1e261a81e68c6 100644 (file)
@@ -2211,7 +2211,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "IRIX" OR CMAKE_SYSTEM_NAME STREQUAL "IRIX64")
     set(MAN_MISC_INFO 5)
 elseif(CMAKE_SYSTEM_NAME STREQUAL "OSF1")
     #
-    # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
+    # DEC OSF/1, a/k/a Digital UNIX, a/k/a Tru64 UNIX.
     # Use Tru64 UNIX conventions for man pages; they're the same as the
     # System V conventions except that they use section 8 for
     # administrative commands and daemons.
index 477a27eb7e994916e2f3a17004928ad78d7dcd08..b40f4398984c9d31e5a2348ec252e43d0c792bdc 100755 (executable)
--- a/configure
+++ b/configure
@@ -9570,7 +9570,7 @@ osf*)
        DYEXT="so"
 
        #
-       # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
+       # DEC OSF/1, a/k/a Digital UNIX, a/k/a Tru64 UNIX.
        # Use Tru64 UNIX conventions for man pages; they're the same as
        # the System V conventions except that they use section 8 for
        # administrative commands and daemons.
index 3a6bb7309bc162d41d551e3736c66be8f85d689e..9ead8cee0c4d457a0220486643de05e4d6d91439 100644 (file)
@@ -2221,7 +2221,7 @@ osf*)
        DYEXT="so"
 
        #
-       # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
+       # DEC OSF/1, a/k/a Digital UNIX, a/k/a Tru64 UNIX.
        # Use Tru64 UNIX conventions for man pages; they're the same as
        # the System V conventions except that they use section 8 for
        # administrative commands and daemons.
index e776a9eb22adc1dfdd2c3b71f266a45ecb8f99de..33579b1155b5593e17acacc6b5930507569ea405 100644 (file)
--- a/extract.h
+++ b/extract.h
@@ -127,7 +127,7 @@ EXTRACT_BE_S_8(const void *p)
  * cast the pointer to point to one of those, and fetch through it;
  * the GCC manual doesn't appear to explicitly say that
  * __attribute__((packed)) causes the compiler to generate unaligned-safe
- * code, but it apppears to do so.
+ * code, but it appears to do so.
  *
  * We do this in case the compiler can generate code using those
  * instructions to do an unaligned load and pass stuff to "ntohs()" or
index b7a741631b3b0717a2ae4f92f6e5169215c4e62f..f261ead00df8a0c3bdcbe47206d03b180b883f94 100644 (file)
@@ -736,7 +736,7 @@ dag_inject(pcap_t *p, const void *buf _U_, int size _U_)
  *  API polling parameters.
  *
  *  snaplen is now also ignored, until we get per-stream slen support. Set
- *  slen with approprite DAG tool BEFORE pcap_activate().
+ *  slen with appropriate DAG tool BEFORE pcap_activate().
  *
  *  See also pcap(3).
  */
index 8dbf89bca393ca596b98dee24e837fd9c22cea43..60187eb87a24cee8bbadee5f4b9bb01d69dcbffe 100644 (file)
@@ -1485,7 +1485,7 @@ get_if_ioctl_socket(void)
         * capture on them, "why do no interfaces show up?" - when the
         * real problem is a permissions problem.  Error reports of that
         * type require a lot more back-and-forth to debug, as evidenced
-        * by many Wireshark bugs/mailing list questions/Q&A questoins.)
+        * by many Wireshark bugs/mailing list questions/Q&A questions.)
         *
         * So:
         *
index 70653df79d96e2b635c9ab183591539832ccb25a..0f220d64ff304b2179e16a8c5fd1df2d77133a3f 100644 (file)
@@ -912,7 +912,7 @@ pcap_read_win32_dag(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
                        }
                }
 
-               /* Fill the header for the user suppplied callback function */
+               /* Fill the header for the user supplied callback function */
                pcap_header.caplen = caplen;
                pcap_header.len = packet_len;
 
index e917edd7bb75f65dbc051a7118e28b1ca0ca4ed9..270a1afbf185e02c820c3793ccf3aab5f2906568 100644 (file)
@@ -93,7 +93,7 @@ loop:
       h = GCT_grab(id);
 
       m = (MSG*)h;
-      /* a couter is added here to avoid an infinite loop
+      /* a counter is added here to avoid an infinite loop
        * that will cause our capture program GUI to freeze while waiting
        * for a packet*/
       counter++ ;
index 16475729ba2690a9373b0d31d21d47a20bc33f80..2e5d4426adb785ae996255f81c05ea6aa7edcf56 100644 (file)
@@ -492,7 +492,7 @@ static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 if
                u->iface = iface;                                       /* stick this entry at the head of the list */
        } else {
                iface_ptr = u->iface;
-               while (iface_ptr->next) {                       /* othewise scan the list */
+               while (iface_ptr->next) {                       /* otherwise scan the list */
                        iface_ptr = iface_ptr->next;    /* till we're at the last entry */
                }
                iface_ptr->next = iface;                        /* then tack this entry on the end of the list */
index a43f7a09bffc6d36cf5d22185a255fbc0097f73b..e98932d857c8816483d40905d3d2467dc36fdea9 100644 (file)
@@ -720,7 +720,7 @@ periodically for packets; in that case,
 will return a pointer to a
 .B struct timeval
 whose value can be used as a timeout in those routines.  When the
-routine returns, an attmept should be made to read packets from the
+routine returns, an attempt should be made to read packets from the
 device.  If
 .BR pcap_get_required_select_timeout ()
 returns
diff --git a/pcap.c b/pcap.c
index fe0762a3d431a7fd0f80b929554259b2008734c0..0d427a660f430fc8ff676ae00c3e922591cab2e7 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -4111,7 +4111,7 @@ pcap_close(pcap_t *p)
 }
 
 /*
- * Helpers for safely loding code at run time.
+ * Helpers for safely loading code at run time.
  * Currently Windows-only.
  */
 #ifdef _WIN32
index b79dda186e68c46da10901df42dd7a6e8c278e55..c051f887ead6069ec07dd8f604a3a3729528fc78 100644 (file)
@@ -386,7 +386,7 @@ void fileconf_read(void)
 
                                //
                                // Append this to the host list.
-                               // Save the curren end-of-string for the
+                               // Save the current end-of-string for the
                                // host list, in case the new host doesn't
                                // fit, so that we can discard the partially-
                                // copied host name.
index 35ca265eb2ddbe6592bf3ab7185e39071dfde812..05119b579545d8a5f172f7740dc9eed8b4249a77 100644 (file)
--- a/sf-pcap.c
+++ b/sf-pcap.c
@@ -578,7 +578,7 @@ pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data)
                 * userland.
                 *
                 * However, perhaps some versions of libpcap failed to
-                * set the snapshot length currectly in the file header
+                * set the snapshot length correctly in the file header
                 * or the per-packet header, or perhaps this is a
                 * corrupted safefile or a savefile built/modified by a
                 * fuzz tester, so we check anyway.  We grow the buffer
index d9762dd593ba77497cdad5a1f5bf0a0b3049a1da..a34f0d17382213b7a55dc1bd14a81c3f1cdbb311 100644 (file)
@@ -93,7 +93,7 @@
  *
  * On Windows, send() and recv() return an int.
  *
- *   Wth MSVC, there *is* no ssize_t.
+ *   With MSVC, there *is* no ssize_t.
  *
  *   With MinGW, there is an ssize_t type; it is either an int (32 bit)
  *   or a long long (64 bit).
index 058b18be8e7b3a93b8c0f2741095e4fd389fc82c..55055ca3d9ba18ec631a073503260e32ff939a75 100644 (file)
@@ -109,7 +109,7 @@ The Regents of the University of California.  All rights reserved.\n";
  * also include <pcap.h> to open the device in the first place, and that
  * means that we may get collisions between their definitions of
  * BPF_STMT and BPF_JUMP - and do, in fact, get them on Linux (the
- * definitons may be semantically the same, but that's not sufficient to
+ * definitions may be semantically the same, but that's not sufficient to
  * avoid the warnings, as the preprocessor doesn't know that u_short is
  * just unsigned short).
  *
index bcc34af8ae9de612dc99d68692e320b1b18e65e6..f7df45a54dd267038af931536153bec56ee83b24 100755 (executable)
@@ -5,7 +5,7 @@ This program parses the output from pcap_compile() to visualize the CFG after
 each optimize phase.
 
 Usage guide:
-1. Enable optimizier debugging code when configure libpcap,
+1. Enable optimizer debugging code when configure libpcap,
    and build libpcap & the test programs
        ./configure --enable-optimizer-dbg
        make