ip: cleanup typos in documentation 03/23003/4
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Sat, 26 Oct 2019 23:34:40 +0000 (19:34 -0400)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 30 Oct 2019 19:55:41 +0000 (19:55 +0000)
Type: style

Change-Id: I7d44b7fab1b8b196e4934cb4832ee51084c5bf98
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vnet/ip/ip.c
src/vnet/ip/ip4_error.h
src/vnet/ip/ip_neighbor.c
src/vnet/ip/ip_neighbor.h
src/vnet/ip/ip_source_and_port_range_check.h
src/vnet/ip/ip_types_api.c
src/vnet/ip/ip_types_api.h
src/vnet/ip/lookup.c

index c5b43d4..785cd49 100644 (file)
@@ -309,7 +309,7 @@ format_ip_dscp (u8 * s, va_list * va)
 #undef _
     }
 
-  return (format (s, "unknon"));
+  return (format (s, "unknown"));
 }
 
 /*
index c368b3b..073555a 100644 (file)
   /* Spoofed packets in ip4-rewrite-local */                            \
   _ (SPOOFED_LOCAL_PACKETS, "ip4 spoofed local-address packet drops")   \
                                                                         \
-  /* Errors singalled by ip4-inacl */                                   \
+  /* Errors signalled by ip4-inacl */                                   \
   _ (INACL_TABLE_MISS, "input ACL table-miss drops")                    \
   _ (INACL_SESSION_DENY, "input ACL session deny drops")                \
   /* Errors singalled by ip4-outacl */                                  \
   _ (OUTACL_TABLE_MISS, "output ACL table-miss drops")                  \
   _ (OUTACL_SESSION_DENY, "output ACL session deny drops")              \
                                                                         \
-  /* Erros from mfib-forward */                                         \
+  /* Errors from mfib-forward */                                         \
   _ (RPF_FAILURE, "Multicast RPF check failed")                         \
                                                                         \
   /* Errors signalled by ip4-reassembly */                              \
index bd01441..ef61dde 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * src/vnet/ip/ip_neighboor.c: ip neighbor generic handling
+ * src/vnet/ip/ip_neighbor.c: ip neighbor generic handling
  *
  * Copyright (c) 2018 Cisco and/or its affiliates.
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,7 +27,7 @@
  *   - Max processing allowed per run      : 20 usec
  *   - Max probe/delete operations per run : 10
  *   - Scan interrupt delay to resume scan : 1 msec
- *   - Neighbor stale threashold           : 4 x scan-interval
+ *   - Neighbor stale threshold            : 4 x scan-interval
  */
 #define IP_NEIGHBOR_DEF_SCAN_INTERVAL (60.0)
 #define IP_NEIGHBOR_DEF_MAX_PROC_TIME (20e-6)
@@ -407,11 +407,11 @@ done:
 
 /*?
  * The '<em>ip scan-neighbor</em>' command can be used to enable and disable
- * periodic IP neighbor scan and change various scan parameneters.
+ * periodic IP neighbor scan and change various scan parameters.
  *
  * @note The default parameters used for IP neighbor scan should work fine
  * under normal conditions. They should not be changed from the default unless
- * properly tested to work as desied.
+ * properly tested to work as desired.
  *
  * @cliexpar
  * Example of enabling IP neighbor scan:
index 84247f2..d370dde 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * ip_neighboor.h: ip neighbor generic services
+ * ip_neighbor.h: ip neighbor generic services
  *
  * Copyright (c) 2018 Cisco and/or its affiliates.
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -30,7 +30,7 @@ typedef struct
   u8 max_proc_time;            /* max processing time per run, in usecs */
   u8 max_update;               /* max probe/delete operations per run */
   u8 scan_int_delay;           /* delay in msecs, to resume scan on max */
-  u8 stale_threshold;          /* Threashold in minutes to delete nei entry */
+  u8 stale_threshold;          /* Threshold in minutes to delete nei entry */
 } ip_neighbor_scan_arg_t;
 
 void ip_neighbor_scan_enable_disable (ip_neighbor_scan_arg_t * arg);
index ece2ec2..b78e25e 100644 (file)
@@ -78,7 +78,7 @@ typedef struct
  *
  *   struct B {
  *     u16 n_ranges;
- *     range_t *ragnes; // vector of ranges.
+ *     range_t *ranges; // vector of ranges.
  *   }
  *
  *   so to read ranges[0] we would first d-cache miss on the address
@@ -88,7 +88,7 @@ typedef struct
  *
  *  struct B {
  *    u16 n_ranges;
- *    range_t ragnes[N];
+ *    range_t ranges[N];
  *  }
  *
  * memory:
@@ -108,7 +108,7 @@ typedef struct protocol_port_range_dpo_t_
 
   /**
    * The number of blocks from the 'block' array below
-   * that have rnages configured. We keep this count so that in the data-path
+   * that have ranges configured. We keep this count so that in the data-path
    * we can limit the loop to be only over the blocks we need
    */
   u16 n_used_blocks;
index ca26731..e9be1c6 100644 (file)
@@ -149,7 +149,7 @@ ip_address_union_decode (const vl_api_address_union_t * in,
       type = IP46_TYPE_IP6;
       break;
     default:
-      ASSERT (!"Unkown address family in API address type");
+      ASSERT (!"Unknown address family in API address type");
       type = IP46_TYPE_ANY;
       break;
     }
index 11891de..a801580 100644 (file)
@@ -27,7 +27,7 @@
 #include <vnet/ip/ip.api_types.h>
 
 /**
- * These enum decode/encodes use 'int' as the type for the enum becuase
+ * These enum decode/encodes use 'int' as the type for the enum because
  * one cannot forward declare an enum
  */
 extern int ip_address_family_decode (int _af, ip_address_family_t * out);
index e354db7..4db7660 100644 (file)
@@ -13,7 +13,7 @@
  * limitations under the License.
  */
 /*
- * ip/ip_lookup.c: ip4/6 adjacency and lookup table managment
+ * ip/ip_lookup.c: ip4/6 adjacency and lookup table management
  *
  * Copyright (c) 2008 Eliot Dresselhaus
  *
@@ -55,7 +55,7 @@
 
 /**
  * @file
- * @brief IPv4 and IPv6 adjacency and lookup table managment.
+ * @brief IPv4 and IPv6 adjacency and lookup table management.
  *
  */
 
@@ -1016,7 +1016,7 @@ done:
 }
 
 /*?
- * This command is used to add or delete IPv4 or IPv6  multicastroutes. All
+ * This command is used to add or delete IPv4 or IPv6  multicast routes. All
  * IP Addresses ('<em><dst-ip-addr>/<width></em>',
  * '<em><next-hop-ip-addr></em>' and '<em><adj-hop-ip-addr></em>')
  * can be IPv4 or IPv6, but all must be of the same form in a single