]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix small misspellings 730/head
authorAntonin Décimo <[email protected]>
Wed, 23 Jan 2019 16:28:14 +0000 (17:28 +0100)
committerAntonin Décimo <[email protected]>
Wed, 23 Jan 2019 16:28:14 +0000 (17:28 +0100)
12 files changed:
print-802_11.c
print-babel.c
print-dccp.c
print-icmp.c
print-isoclns.c
print-lldp.c
print-medsa.c
print-pptp.c
print-resp.c
print-rx.c
print-sctp.c
smbutil.c

index 4db7ab6bcecb3bb45beeeeb65ee0c4adfdba81b2..6c052e2352b763f42e17e118a1a7046f5497192b 100644 (file)
@@ -231,7 +231,7 @@ struct cf_t {
        uint8_t         count;
        uint8_t         period;
        uint16_t        max_duration;
-       uint16_t        dur_remaing;
+       uint16_t        dur_remaining;
 };
 
 struct tim_t {
@@ -1348,7 +1348,7 @@ static int
 handle_reassoc_response(netdissect_options *ndo,
                         const u_char *p, u_int length)
 {
-       /* Same as a Association Reponse */
+       /* Same as a Association Response */
        return handle_assoc_response(ndo, p, length);
 }
 
index 84acf863a14d672e972994b22bb6742cf5ffdd02..fb70a7fc51abf925de7e9060abd9459c9d794abd 100644 (file)
@@ -251,7 +251,7 @@ network_address(int ae, const unsigned char *a, unsigned int len,
  * o Type 1 stands for PadN sub-TLV with the same encoding as the PadN TLV.
  * o Type 2 stands for Diversity sub-TLV, which propagates diversity routing
  *   data. Its body is a variable-length sequence of 8-bit unsigned integers,
- *   each representing per-hop number of interferring radio channel for the
+ *   each representing per-hop number of interfering radio channel for the
  *   prefix. Channel 0 is invalid and must not be used in the sub-TLV, channel
  *   255 interferes with any other channel.
  * o Type 3 stands for Timestamp sub-TLV, used to compute RTT between
index 4824e23d78822f42cfd0536344559fcd150af0a6..8d3ad0ae9aa2027159002691821984c05489c75c 100644 (file)
@@ -85,7 +85,7 @@ struct dccp_hdr_ext {
 #define DCCPH_TYPE(dh) ((EXTRACT_U_1((dh)->dccph_xtr) >> 1) & 0xF)
 
 /**
- * struct dccp_hdr_request - Conection initiation request header
+ * struct dccp_hdr_request - Connection initiation request header
  *
  * @dccph_req_service - Service to which the client app wants to connect
  */
@@ -94,7 +94,7 @@ struct dccp_hdr_request {
 };
 
 /**
- * struct dccp_hdr_response - Conection initiation response header
+ * struct dccp_hdr_response - Connection initiation response header
  *
  * @dccph_resp_ack - 48 bit ack number, contains GSR
  * @dccph_resp_service - Echoes the Service Code on a received DCCP-Request
@@ -268,7 +268,7 @@ static u_int dccp_print_option(netdissect_options *, const u_char *, u_int);
  * dccp_print - show dccp packet
  * @bp - beginning of dccp packet
  * @data2 - beginning of enclosing
- * @len - lenght of ip packet
+ * @len - length of ip packet
  */
 void
 dccp_print(netdissect_options *ndo, const u_char *bp, const u_char *data2,
index ebf4693cefbb1f98cfe0bb60fc314d35a6dfe43c..86da44bd99ec2bde3c99c9fec3812db6585ce258 100644 (file)
@@ -260,7 +260,7 @@ struct id_rdiscovery {
  * draft-bonica-internet-icmp-08
  *
  * The Destination Unreachable, Time Exceeded
- * and Parameter Problem messages are slighly changed as per
+ * and Parameter Problem messages are slightly changed as per
  * the above draft. A new Length field gets added to give
  * the caller an idea about the length of the piggypacked
  * IP packet before the MPLS extension header starts.
index c4b8666781dc5872a848c619a6397d0d4caf90b4..c208690e19514fd8e8378da17f5c47e849dfacbf 100644 (file)
@@ -2354,7 +2354,7 @@ isis_print(netdissect_options *ndo,
     case 0:
         id_length = 6;  /* silly shit again */
        break;
-    case 1:              /* 1-8 are valid sys-ID lenghts */
+    case 1:              /* 1-8 are valid sys-ID lengths */
     case 2:
     case 3:
     case 4:
@@ -2676,7 +2676,7 @@ isis_print(netdissect_options *ndo,
                        isonsap_string(ndo, tptr, alen));
                tptr += alen;
                tmp -= alen + 1;
-               if (tmp==0) /* if this is the last area address do not attemt a boundary check */
+               if (tmp==0) /* if this is the last area address do not attempt a boundary check */
                     break;
                ND_TCHECK_1(tptr);
                alen = EXTRACT_U_1(tptr);
index 68667bd6b7b82f8c88597b1c869e65b727cba926..34373996cef42384d2312ebc550437ecf7b5b893 100644 (file)
@@ -540,11 +540,11 @@ static const struct tok lldp_mdi_power_class_values[] = {
     { 0, NULL}
 };
 
-#define LLDP_AGGREGATION_CAPABILTIY     (1 <<  0)
+#define LLDP_AGGREGATION_CAPABILITY     (1 <<  0)
 #define LLDP_AGGREGATION_STATUS         (1 <<  1)
 
 static const struct tok lldp_aggregation_values[] = {
-    { LLDP_AGGREGATION_CAPABILTIY, "supported"},
+    { LLDP_AGGREGATION_CAPABILITY, "supported"},
     { LLDP_AGGREGATION_STATUS, "enabled"},
     { 0, NULL}
 };
index b7111ea7a8e8d9f3445c245370e360aa9e8b1073..655cd01c084169e61750e1c19dc59cb9ab021a33 100644 (file)
@@ -36,7 +36,7 @@
 /*
  * Marvell Extended Distributed Switch Archiecture.
  *
- * A Marvell propriatary header used for passing packets to/from
+ * A Marvell proprietary header used for passing packets to/from
  * specific ports of a switch. There is no open specification of this
  * header, but is documented in the Marvell Switch data sheets. For
  * background, see:
index 1f5c331390ed64169abca887d6446cad43c72583..7bdc7d82fd3cb98b200f841d3e93f2342eba50ca 100644 (file)
@@ -232,7 +232,7 @@ struct pptp_msg_sli {
 /* attributes that appear more than once in above messages:
 
    Number of
-   occurence    attributes
+   occurrence    attributes
   --------------------------------------
       2         uint32_t bearer_cap;
       2         uint32_t bearer_type;
index 47f1eb3d9f88bbb662fe12919205e0187dbe9a1f..6529c745ea037f1f932cf3962e2d130e84a53b91 100644 (file)
@@ -434,7 +434,7 @@ resp_print_inline(netdissect_options *ndo, const u_char *bp, int length) {
 
     /*
      * Found it; bp_ptr points to the \r or \n, so bp_ptr - bp is the
-     * Length of the line text that preceeds it.  Print it.
+     * Length of the line text that precedes it.  Print it.
      */
     len = (bp_ptr - bp);
     RESP_PRINT_SEGMENT(ndo, bp, len);
index 3a2a51a064a8612b628bddc0f431e8804f541d75..5e0315ef4ebccf0633d1ee2b0c8f748c309b9b7f 100644 (file)
@@ -750,7 +750,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, u_int sport,
 }
 
 /*
- * These extrememly grody macros handle the printing of various AFS stuff.
+ * These extremely grody macros handle the printing of various AFS stuff.
  */
 
 #define FIDOUT() { uint32_t n1, n2, n3; \
index 88bf8c212a3e8099755e1b88ac5325ed9f2769b9..19ffd74b40951b0f8882f6f58eaab630c39c5198 100644 (file)
@@ -89,7 +89,7 @@
  *
  * Any bugs reported given to us we will try to fix... any fixes shared will
- * be incorperated into the next SCTP release.
+ * be incorporated into the next SCTP release.
  */
 
 /* The valid defines for all message
@@ -249,7 +249,7 @@ struct sctpSendableInit{
 
 /* Selective Acknowledgement
  * has the following structure with
- * a optional ammount of trailing int's
+ * a optional amount of trailing int's
  * on the last part (based on the numberOfDesc
  * field).
  */
index 0c1bb23a3be1decabea725e688df2c9f19d29ef1..26a52340bb40874fc1d67a08431d87b35ff0a609 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -1859,7 +1859,7 @@ static const nt_err_code_struct nt_errors[] = {
   { 0xC002100A, "RPC_P_SEND_FAILED" },
   { 0xC002100B, "RPC_P_TIMEOUT" },
   { 0xC002100C, "RPC_P_SERVER_TRANSPORT_ERROR" },
-  { 0xC002100E, "RPC_P_EXCEPTION_OCCURED" },
+  { 0xC002100E, "RPC_P_EXCEPTION_OCCURRED" },
   { 0xC0021012, "RPC_P_CONNECTION_SHUTDOWN" },
   { 0xC0021015, "RPC_P_THREAD_LISTENING" },
   { 0xC0030001, "RPC_NT_NO_MORE_ENTRIES" },