ip: cleanup typos in documentation
Type: style
Change-Id: I7d44b7fab1b8b196e4934cb4832ee51084c5bf98
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
diff --git a/src/vnet/ip/ip.c b/src/vnet/ip/ip.c
index c5b43d4..785cd49 100644
--- a/src/vnet/ip/ip.c
+++ b/src/vnet/ip/ip.c
@@ -309,7 +309,7 @@
#undef _
}
- return (format (s, "unknon"));
+ return (format (s, "unknown"));
}
/*
diff --git a/src/vnet/ip/ip4_error.h b/src/vnet/ip/ip4_error.h
index c368b3b..073555a 100644
--- a/src/vnet/ip/ip4_error.h
+++ b/src/vnet/ip/ip4_error.h
@@ -73,14 +73,14 @@
/* 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 */ \
diff --git a/src/vnet/ip/ip_neighbor.c b/src/vnet/ip/ip_neighbor.c
index bd01441..ef61dde 100644
--- a/src/vnet/ip/ip_neighbor.c
+++ b/src/vnet/ip/ip_neighbor.c
@@ -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 @@
/*?
* 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:
diff --git a/src/vnet/ip/ip_neighbor.h b/src/vnet/ip/ip_neighbor.h
index 84247f2..d370dde 100644
--- a/src/vnet/ip/ip_neighbor.h
+++ b/src/vnet/ip/ip_neighbor.h
@@ -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 @@
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);
diff --git a/src/vnet/ip/ip_source_and_port_range_check.h b/src/vnet/ip/ip_source_and_port_range_check.h
index ece2ec2..b78e25e 100644
--- a/src/vnet/ip/ip_source_and_port_range_check.h
+++ b/src/vnet/ip/ip_source_and_port_range_check.h
@@ -78,7 +78,7 @@
*
* 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 @@
*
* struct B {
* u16 n_ranges;
- * range_t ragnes[N];
+ * range_t ranges[N];
* }
*
* memory:
@@ -108,7 +108,7 @@
/**
* 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;
diff --git a/src/vnet/ip/ip_types_api.c b/src/vnet/ip/ip_types_api.c
index ca26731..e9be1c6 100644
--- a/src/vnet/ip/ip_types_api.c
+++ b/src/vnet/ip/ip_types_api.c
@@ -149,7 +149,7 @@
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;
}
diff --git a/src/vnet/ip/ip_types_api.h b/src/vnet/ip/ip_types_api.h
index 11891de..a801580 100644
--- a/src/vnet/ip/ip_types_api.h
+++ b/src/vnet/ip/ip_types_api.h
@@ -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);
diff --git a/src/vnet/ip/lookup.c b/src/vnet/ip/lookup.c
index e354db7..4db7660 100644
--- a/src/vnet/ip/lookup.c
+++ b/src/vnet/ip/lookup.c
@@ -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 @@
}
/*?
- * 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