aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-10-26 19:34:40 -0400
committerDave Wallace <dwallacelf@gmail.com>2019-10-30 19:55:41 +0000
commit5b755e2f9fce239b5280ac1e5e21f835464fa017 (patch)
tree29463055a8ee5b6c078562461d4ddd41f4e5321b /src/vnet/ip
parentb1a81aa67942aa1b5a97a4199310c9ffeaab1f5f (diff)
ip: cleanup typos in documentation
Type: style Change-Id: I7d44b7fab1b8b196e4934cb4832ee51084c5bf98 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/ip.c2
-rw-r--r--src/vnet/ip/ip4_error.h4
-rw-r--r--src/vnet/ip/ip_neighbor.c8
-rw-r--r--src/vnet/ip/ip_neighbor.h4
-rw-r--r--src/vnet/ip/ip_source_and_port_range_check.h6
-rw-r--r--src/vnet/ip/ip_types_api.c2
-rw-r--r--src/vnet/ip/ip_types_api.h2
-rw-r--r--src/vnet/ip/lookup.c6
8 files changed, 17 insertions, 17 deletions
diff --git a/src/vnet/ip/ip.c b/src/vnet/ip/ip.c
index c5b43d446be..785cd491b57 100644
--- a/src/vnet/ip/ip.c
+++ b/src/vnet/ip/ip.c
@@ -309,7 +309,7 @@ format_ip_dscp (u8 * s, va_list * va)
#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 c368b3b00dc..073555a83b0 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 bd0144101ed..ef61dde0e05 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 @@ 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:
diff --git a/src/vnet/ip/ip_neighbor.h b/src/vnet/ip/ip_neighbor.h
index 84247f22f47..d370ddeeee4 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 @@ 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);
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 ece2ec216e4..b78e25e9b46 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 @@ 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;
diff --git a/src/vnet/ip/ip_types_api.c b/src/vnet/ip/ip_types_api.c
index ca26731a30a..e9be1c613b6 100644
--- a/src/vnet/ip/ip_types_api.c
+++ b/src/vnet/ip/ip_types_api.c
@@ -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;
}
diff --git a/src/vnet/ip/ip_types_api.h b/src/vnet/ip/ip_types_api.h
index 11891dec7c1..a80158052b8 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 e354db77216..4db7660eea9 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 @@ 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