]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix some spelling. [skip ci]
authorDenis Ovsienko <[email protected]>
Fri, 9 Oct 2020 12:08:31 +0000 (13:08 +0100)
committerDenis Ovsienko <[email protected]>
Fri, 9 Oct 2020 12:08:31 +0000 (13:08 +0100)
18 files changed:
CHANGES
INSTALL.md
aclocal.m4
doc/README.capture-module
doc/README.hpux
pcap-common.c
pcap-dag.c
pcap-dos.c
pcap-linux.c
pcap-npf.c
pcap-septel.c
pcap-sita.c
pcap-sita.html
pcap/dlt.h
pcap/pcap.h
rpcap-protocol.h
sockutils.c
testprogs/BPF/1.txt

diff --git a/CHANGES b/CHANGES
index 6535896f841dee614c4a636c48f1ce8b36260399..e4b391256a9fbd38885fa4b6eb6fb137c04b4a53 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -682,7 +682,7 @@ Tuesday January 9, 2001. [email protected]. Summary for 0.6 release
 
        Header files fixed to allow use in C++ programs.
 
-       Removed dependancy on native headers for packet layout.
+       Removed dependency on native headers for packet layout.
        Removed Linux specific headers that were shipped.
 
        Security fixes: Strcpy replaced with strlcpy, sprintf replaced
index e8652c519477b96e2d83f0ab52320d6147b66394..ebf08a64502005a43eed6c8a4faec5b81945575b 100644 (file)
@@ -188,7 +188,7 @@ If you use SINIX, you should be able to build libpcap from this
 release. It is known to compile and run on SINIX-Y/N 5.42 with the C-DS
 V1.0 or V1.1 compiler. But note that in some releases of SINIX, yacc
 emits incorrect code; if grammar.y fails to compile, change every
-occurence of:
+occurrence of:
 
        #ifdef YYDEBUG
 
index 9e06f760403e36afc705881258431cf23a9fc21f..0523f7c54817a4105943420a27bb50d5b414922e 100644 (file)
@@ -1078,7 +1078,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
 dnl
 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-dnl only at the first occurence in configure.ac, so if the first place
+dnl only at the first occurrence in configure.ac, so if the first place
 dnl it's called might be skipped (such as if it is within an "if", you
 dnl have to call PKG_CHECK_EXISTS manually
 AC_DEFUN([PKG_CHECK_EXISTS],
index f4f1c0489d018bf03407656d0ce6aacb880c3f04..e13eaf310445c8e2832483f2875ef10ecc15a309 100644 (file)
@@ -232,13 +232,13 @@ structure:
                called whnever pcap_set_datalink() is called
 
        getnonblock_op
-               called whenver pcap_getnonblock() is called
+               called whenever pcap_getnonblock() is called
 
        setnonblock_op
                called whenever pcap_setnonblock() is called
 
        stats_op
-               called whenver pcap_stats() is called
+               called whenever pcap_stats() is called
 
        cleanup_op
                called if the activate routine fails or pcap_close() is
index e5819355224a894767f77c272d212d0f61f902c5..b995eeea6e9e4b3d354a0d30a4c4869c583caa34 100644 (file)
@@ -159,7 +159,7 @@ An additional note, from Jost Martin, for HP-UX 10.20:
           of an interface
        A: You need to get PHNE_20892,PHNE_20725 and PHCO_10947 (or
           newer, this is as of 4.4.00) and its dependencies.  Then you can
-          enable the feature as descibed below:
+          enable the feature as described below:
 
        Patch Name: PHNE_20892
        Patch Description: s700 10.20 PCI 100Base-T cumulative patch
index c4227d90ed9eacf7ace78b463e5144050bb4dcc6..51d0666f77c12d63b6101c2a505cc453ed8a45ca 100644 (file)
  * input packets such as port scans, packets from old lost connections,
  * etc. to force the connection to stay up).
  *
- * The first byte of the PPP header (0xff03) is modified to accomodate
+ * The first byte of the PPP header (0xff03) is modified to accommodate
  * the direction - 0x00 = IN, 0x01 = OUT.
  */
 #define LINKTYPE_PPP_PPPD      166
 
 /*
  * DisplayPort AUX channel monitoring data as specified by VESA
- * DisplayPort(DP) Standard preceeded by a pseudo-header.
+ * DisplayPort(DP) Standard preceded by a pseudo-header.
  *    per dirk.eibach at gdsys.cc
  */
 #define LINKTYPE_DISPLAYPORT_AUX       275
index eefde6fd7ec9050395ee41b296aa6556f06ee25d..b207dd84cebab024db0a0d1c8403c391b228ad38 100644 (file)
@@ -333,7 +333,7 @@ dag_erf_ext_header_count(uint8_t * erf, size_t len)
 /*
  *  Read at most max_packets from the capture stream and call the callback
  *  for each of them. Returns the number of packets handled, -1 if an
- *  error occured, or -2 if we were told to break out of the loop.
+ *  error occurred, or -2 if we were told to break out of the loop.
  */
 static int
 dag_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
index 22388514622b1d83b5e8dc04b7a1686bf3f6b290..cdd60ea459e1a8b65773ad83086103f43a5d3672 100644 (file)
@@ -943,7 +943,7 @@ static void pcap_init_hook (void)
 }
 
 /*
- * Supress PRINT message from Watt-32's sock_init()
+ * Suppress PRINT message from Watt-32's sock_init()
  */
 static void null_print (void) {}
 
index 43276e60d95a7582a8a1f4c5e0acc013103a2460..10997abe6a77f282f34196b2ca23c15ddf9ecab1 100644 (file)
@@ -2539,7 +2539,7 @@ activate_pf_packet(pcap_t *handle, int is_any_device)
                }
        }
 
-       /* Enable auxillary data if supported and reserve room for
+       /* Enable auxiliary data if supported and reserve room for
         * reconstructing VLAN headers. */
 #ifdef HAVE_PACKET_AUXDATA
        val = 1;
@@ -3056,7 +3056,7 @@ create_ring(pcap_t *handle, int *status)
                return -1;
        }
 
-       /* compute the minumum block size that will handle this frame.
+       /* compute the minimum block size that will handle this frame.
         * The block has to be page size aligned.
         * The max block size allowed by the kernel is arch-dependent and
         * it's not explicitly checked here. */
@@ -4297,7 +4297,7 @@ pcap_setfilter_linux(pcap_t *handle, struct bpf_program *filter)
                if ((err = set_kernel_filter(handle, &fcode)) == 0)
                {
                        /*
-                        * Installation succeded - using kernel filter,
+                        * Installation succeeded - using kernel filter,
                         * so userland filtering not needed.
                         */
                        handlep->filter_in_userland = 0;
index 4a66fc1f59cf090308e717a188b84c92b111ea14..a4ee1d9c848b4ec0e8b4404904c500491bd0392a 100644 (file)
@@ -286,7 +286,7 @@ pcap_stats_ex_npf(pcap_t *p, int *pcap_stat_size)
        p->stat.ps_ifdrop = bstats.ps_ifdrop;
        /*
         * Just in case this is ever compiled for a target other than
-        * Windows, which is somewhere between extemely unlikely and
+        * Windows, which is somewhere between extremely unlikely and
         * impossible.
         */
 #ifdef _WIN32
index 759e622c25fd8ed215e991b78490d50539c4199b..e917edd7bb75f65dbc051a7118e28b1ca0ca4ed9 100644 (file)
@@ -45,7 +45,7 @@ struct pcap_septel {
 /*
  *  Read at most max_packets from the capture queue and call the callback
  *  for each of them. Returns the number of packets handled, -1 if an
- *  error occured, or -2 if we were told to break out of the loop.
+ *  error occurred, or -2 if we were told to break out of the loop.
  */
 static int septel_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) {
 
index 90e7f6f176ae3967abc34ab0137acb63eb7c9459..c53f32358b523ad8e58e1926e5b79da67fa8ff5f 100644 (file)
@@ -755,9 +755,9 @@ static void wait_for_all_answers(void) {
 
                memcpy(&working_set, &readfds, sizeof(readfds));                                /* otherwise, we still have to listen for more stuff, till we timeout */
                retval = select(max_fs + 1, &working_set, NULL, NULL, &tv);
-               if (retval == -1) {                                                                                             /* an error occured !!!!! */
+               if (retval == -1) {                                                                                             /* an error occurred !!!!! */
                        return;
-               } else if (retval == 0) {                                                                               /* timeout occured, so process what we've got sofar and return */
+               } else if (retval == 0) {                                                                               /* timeout occurred, so process what we've got sofar and return */
                        printf("timeout\n");
                        return;
                } else {
@@ -935,10 +935,10 @@ static int acn_read_n_bytes_with_timeout(pcap_t *handle, int count) {
        bp = handle->bp;
        while (count) {
                retval = select(fd + 1, &w_fds, NULL, NULL, &tv);
-               if (retval == -1) {                                                                                     /* an error occured !!!!! */
+               if (retval == -1) {                                                                                     /* an error occurred !!!!! */
 //                     fprintf(stderr, "error during packet data read\n");
                        return -1;                                                                              /* but we need to return a good indication to prevent unnecessary popups */
-               } else if (retval == 0) {                                                                       /* timeout occured, so process what we've got sofar and return */
+               } else if (retval == 0) {                                                                       /* timeout occurred, so process what we've got sofar and return */
 //                     fprintf(stderr, "timeout during packet data read\n");
                        return -1;
                } else {
index 2be0bf817912412593ff5c081e1c2e90f1756b27..d9b7376e2341e5d2c3b9eb8fafa638b0ee210ced 100644 (file)
@@ -31,7 +31,7 @@ A { text-decoration:none }
                        <TR>
                                <TH VALIGN=TOP>SMP</TH>
                                <TD VALIGN=TOP>The Supervisory Management Processor where Wireshark (or equivalent)
-                                                               runs in conjuction with a libpcap front-end.</TD>
+                                                               runs in conjunction with a libpcap front-end.</TD>
                        </TR>
                        <TR>
                                <TH VALIGN=TOP>IOP</TH>
@@ -43,7 +43,7 @@ A { text-decoration:none }
        <P>
        Each IOP will be capable of supporting multiple connections from an SMP
        enabling monitoring of more than one interface at a time, each through
-       its own seperate connection.  The IOP is responsible to ensure and report
+       its own separate connection.  The IOP is responsible to ensure and report
        an error if any attempt is made to monitor the same interface more than once.
        <P>
        There are three applications that will be supported by the ACN version of libpcap.
@@ -121,8 +121,8 @@ A { text-decoration:none }
                <TR><TH VALIGN=TOP NOWRAP>IOP -> SMP</TH>
                        <TD>
                        After any required processing is complete, the IOP will return a
-                       null terminated string containing an error message if one occured.
-                       If no error occured, a empty string is still returned.
+                       null terminated string containing an error message if one occurred.
+                       If no error occurred, a empty string is still returned.
                        Errors are:
                        <UL>
                        <LI>"Interface (xxx) does not exist."
@@ -298,7 +298,7 @@ A { text-decoration:none }
                        <TD>
                        The SMP reads only the next packet from the reverse channel of the connection
                        between the SMP and the IOP that provides the captured data (via calling pcap_dispatch()
-                       with a count of 1) and returns seperate pointers to both the
+                       with a count of 1) and returns separate pointers to both the
                        packet header and packet data by invoking an internal callback.
                        </TD>
                </TR>
@@ -322,7 +322,7 @@ A { text-decoration:none }
                <TR><TH VALIGN=TOP NOWRAP>IOP -> SMP</TH>
                        <TD>
                        The IOP returns a null terminated error string if it failed to accept the filter.
-                       If no error occured, then a NULL terminated empty string is returned instead.
+                       If no error occurred, then a NULL terminated empty string is returned instead.
                        Errors are:
                        <UL>
                        <LI>"Invalid BPF."
@@ -370,7 +370,7 @@ A { text-decoration:none }
                        If the IOP detects that its communication session with an SMP
                        has closed, it will terminate any monitoring in progress,
                        release any resources and close its end of the session.
-                       It will not maintain persistance of any information or prior mode of operation.
+                       It will not maintain persistence of any information or prior mode of operation.
                        </TD>
                </TR>
        </TABLE></TD></TR>
@@ -442,7 +442,7 @@ A { text-decoration:none }
                        <TD VALIGN=TOP ALIGN=CENTER NOWRAP>IOP -> SMP</TD>
                        <TD VALIGN=TOP>The IOP returns a list of sequences of information as
                                defined by the return parameter of this function call (as shown in the following table).
-                               Elements are specified by providing an unsigned byte preceeding the actual data that contains length information.
+                               Elements are specified by providing an unsigned byte preceding the actual data that contains length information.
                                <P>
                                <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=3>
                                <TR>
@@ -839,7 +839,7 @@ A { text-decoration:none }
        <UL>
        PCAP, Wireshark and Tcpdump enhancements have been added to the ACN to support
        monitoring of its ports, however each of these facilities were focused on capturing
-       and displaying traffic from LAN interfaces.  The SITA extentions to these facilities
+       and displaying traffic from LAN interfaces.  The SITA extensions to these facilities
        are used to also provide the ability to capture, filter, and display information from
        an ACN's WAN ports.
        <P>
@@ -849,7 +849,7 @@ A { text-decoration:none }
        <P>
        <UL TYPE=DISC>
                <LI>For Ethernet (like) devices, the packet format is unchanged from the standard Pcap format.
-               <LI>For WAN devices, the packet contains a 5 byte header that preceeds the actual captured data
+               <LI>For WAN devices, the packet contains a 5 byte header that precedes the actual captured data
                        described by the following table:
        </UL>
        <P>
index 02b1257dc6cc99c4766b8ac5ed936086e50b6a21..eaba34f3048ccd8ebc100ccb37f165b4c3b4ee80 100644 (file)
  * interface (irdaX), but not on a raw serial port.
  * Note the capture is done in "Linux-cooked" mode, so each packet include
  * a fake packet header (struct sll_header). This is because IrDA packet
- * decoding is dependant on the direction of the packet (incomming or
+ * decoding is dependent on the direction of the packet (incoming or
  * outgoing).
  * When/if other platform implement IrDA capture, we may revisit the
  * issue and define a real DLT_IRDA...
  * input packets such as port scans, packets from old lost connections,
  * etc. to force the connection to stay up).
  *
- * The first byte of the PPP header (0xff03) is modified to accomodate
+ * The first byte of the PPP header (0xff03) is modified to accommodate
  * the direction - 0x00 = IN, 0x01 = OUT.
  */
 #define DLT_PPP_PPPD           166
 
 /*
  * DisplayPort AUX channel monitoring data as specified by VESA
- * DisplayPort(DP) Standard preceeded by a pseudo-header.
+ * DisplayPort(DP) Standard preceded by a pseudo-header.
  *    per dirk.eibach at gdsys.cc
  */
 #define DLT_DISPLAYPORT_AUX    275
index 23483e4e54bce3d66f7d44e651e9955dad28c4fe..39b12d2565bbb5518ebfe1afe30119ff9d23afbe 100644 (file)
@@ -727,8 +727,8 @@ PCAP_API const char *pcap_lib_version(void);
  * - rpcap://devicename [opens the selected device devices available on the local host, without using the RPCAP protocol]
  * - rpcap://host/devicename [opens the selected device available on a remote host]
  * - rpcap://host:port/devicename [opens the selected device available on a remote host, using a non-standard port for RPCAP]
- * - adaptername [to open a local adapter; kept for compability, but it is strongly discouraged]
- * - (NULL) [to open the first local adapter; kept for compability, but it is strongly discouraged]
+ * - adaptername [to open a local adapter; kept for compatibility, but it is strongly discouraged]
+ * - (NULL) [to open the first local adapter; kept for compatibility, but it is strongly discouraged]
  *
  * The formats allowed by the pcap_findalldevs_ex() are the following:
  * - file://folder/ [lists all the files in the given folder]
index cab89bbcf02fe027895a5a90a1bb63171f43150e..a69cf80233e1296a3057b9c72f249c7a87c41492 100644 (file)
@@ -306,7 +306,7 @@ struct rpcap_filter
        uint32 nitems;          /* Number of items contained into the filter (e.g. BPF instructions for BPF filters) */
 };
 
-/* Structure that keeps a single BPF instuction; it is repeated 'ninsn' times according to the 'rpcap_filterbpf' header */
+/* Structure that keeps a single BPF instruction; it is repeated 'ninsn' times according to the 'rpcap_filterbpf' header */
 struct rpcap_filterbpf_insn
 {
        uint16 code;    /* opcode of the instruction */
index dd43a3150f8a1a11731822572b76bd0a5d53454d..c1ec9a5a5aa61bbbee30d9ea14bbe9fe17cc1f52 100644 (file)
@@ -290,7 +290,7 @@ static int sock_ismcastaddr(const struct sockaddr *saddr)
  *
  * In case of a server socket, the function calls socket(), bind() and listen().
  *
- * This function is usually preceeded by the sock_initaddress().
+ * This function is usually preceded by the sock_initaddress().
  *
  * \param addrinfo: pointer to an addrinfo variable which will be used to
  * open the socket and such. This variable is the one returned by the previous call to
index 66086952436a96d997d91d1005c3fa830d211ee3..733651e6c25620c67786a5f12725470447550256 100644 (file)
@@ -1,2 +1,2 @@
-# common block merging, same block elimination, result propogation
+# common block merging, same block elimination, result propagation
 host 192.168.1.1