Trivial: Clean up some typos.
Change-Id: I085615fde1f966490f30ed5d32017b8b088cfd59
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index b2c8cd0..67b1fc4 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -1303,7 +1303,7 @@
mi = gid_dictionary_lookup (&lcm->mapping_index_by_gid, &a->eid);
old_map = ((u32) ~ 0 != mi) ? pool_elt_at_index (lcm->mapping_pool, mi) : 0;
- /* check if none of the locators match localy configured address */
+ /* check if none of the locators match locally configured address */
vec_foreach (loc, rlocs)
{
ip_prefix_t *p = &gid_address_ippref (&loc->address);
@@ -1380,7 +1380,7 @@
/**
* Removes a mapping. Does not program forwarding.
*
- * @param eid end-host indetifier
+ * @param eid end-host identifier
* @param res_map_index index of the removed mapping
* @return return code
*/
@@ -3509,7 +3509,7 @@
goto enqueue;
}
- /* if we have remote mapping for destination already in map-chache
+ /* if we have remote mapping for destination already in map-cache
add forwarding tunnel directly. If not send a map-request */
di = gid_dictionary_sd_lookup (&lcm->mapping_index_by_gid, &dst,
&src);
@@ -4167,7 +4167,7 @@
if (!ip_fib_get_first_egress_ip_for_dst (lcm, dst, &src))
{
- clib_warning ("can't find inteface address for %U", format_ip_address,
+ clib_warning ("can't find interface address for %U", format_ip_address,
dst);
return -1;
}
diff --git a/src/vnet/lisp-cp/control.h b/src/vnet/lisp-cp/control.h
index e704094..d8318b5 100644
--- a/src/vnet/lisp-cp/control.h
+++ b/src/vnet/lisp-cp/control.h
@@ -265,7 +265,7 @@
/* enable/disable rloc-probing */
u8 rloc_probing;
- /* timing wheel for mappping timeouts */
+ /* timing wheel for mapping timeouts */
timing_wheel_t wheel;
/** Per thread pool of records shared with thread0 */
diff --git a/src/vnet/lisp-cp/gid_dictionary.c b/src/vnet/lisp-cp/gid_dictionary.c
index c3b9330..73aecbe 100644
--- a/src/vnet/lisp-cp/gid_dictionary.c
+++ b/src/vnet/lisp-cp/gid_dictionary.c
@@ -893,7 +893,7 @@
sd_src_mac (key), value, is_add);
default:
- clib_warning ("SD address type %d not supprted!", sd_dst_type (key));
+ clib_warning ("SD address type %d not supported!", sd_dst_type (key));
break;
}
diff --git a/src/vnet/lisp-cp/lisp.api b/src/vnet/lisp-cp/lisp.api
index b1bea09..708510c 100644
--- a/src/vnet/lisp-cp/lisp.api
+++ b/src/vnet/lisp-cp/lisp.api
@@ -276,7 +276,7 @@
@param context - sender context, to match reply w/ request
@param mode - new map-request mode. Supported values are:
0 - destination only
- 1 - source/destaination
+ 1 - source/destination
*/
autoreply define lisp_map_request_mode
{
@@ -594,7 +594,7 @@
/** \brief Shows relationship between vni and vrf/bd
@param dp_table - VRF index or bridge domain index
- @param vni - vitual network instance
+ @param vni - virtual network instance
*/
define lisp_eid_table_map_details
{
diff --git a/src/vnet/lisp-cp/lisp_api.c b/src/vnet/lisp-cp/lisp_api.c
index cb21dd1..b116ecf 100644
--- a/src/vnet/lisp-cp/lisp_api.c
+++ b/src/vnet/lisp-cp/lisp_api.c
@@ -1267,7 +1267,7 @@
/*
* lisp_api_hookup
* Add vpe's API message handlers to the table.
- * vlib has alread mapped shared memory and
+ * vlib has already mapped shared memory and
* added the client registration handlers.
* See .../vlib-api/vlibmemory/memclnt_vlib.c:memclnt_process()
*/
diff --git a/src/vnet/lisp-cp/lisp_cli.c b/src/vnet/lisp-cp/lisp_cli.c
index b75f034..a044d23 100644
--- a/src/vnet/lisp-cp/lisp_cli.c
+++ b/src/vnet/lisp-cp/lisp_cli.c
@@ -834,7 +834,7 @@
}
vlib_cli_output (vm, "%-35s%-20s%-30s%-20s%-s",
- "EID", "type", "locators", "ttl", "autoritative");
+ "EID", "type", "locators", "ttl", "authoritative");
if (print_all)
{
diff --git a/src/vnet/lisp-cp/lisp_msg_serdes.c b/src/vnet/lisp-cp/lisp_msg_serdes.c
index aee4f25..25188b4 100644
--- a/src/vnet/lisp-cp/lisp_msg_serdes.c
+++ b/src/vnet/lisp-cp/lisp_msg_serdes.c
@@ -119,7 +119,7 @@
struct timespec ts;
/* Put nanosecond clock in lower 32-bits and put an XOR of the nanosecond
- * clock with the seond clock in the upper 32-bits. */
+ * clock with the second clock in the upper 32-bits. */
syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts);
nonce_lower = ts.tv_nsec;
nonce_upper = ts.tv_sec ^ clib_host_to_net_u32 (nonce_lower);
diff --git a/src/vnet/lisp-cp/lisp_types.c b/src/vnet/lisp-cp/lisp_types.c
index d118717..fb3fa6c 100644
--- a/src/vnet/lisp-cp/lisp_types.c
+++ b/src/vnet/lisp-cp/lisp_types.c
@@ -871,7 +871,7 @@
{
if (IP4 == ip_addr_version (src))
{
- /* don't copy any garbe from the union */
+ /* don't copy any garbage from the union */
memset (dst, 0, sizeof (*dst));
dst->ip.v4 = src->ip.v4;
dst->version = IP4;
diff --git a/src/vnet/lisp-cp/one.api b/src/vnet/lisp-cp/one.api
index 7f0f5a9..f02caf2 100644
--- a/src/vnet/lisp-cp/one.api
+++ b/src/vnet/lisp-cp/one.api
@@ -324,7 +324,7 @@
@param context - sender context, to match reply w/ request
@param mode - new map-request mode. Supported values are:
0 - destination only
- 1 - source/destaination
+ 1 - source/destination
*/
autoreply define one_map_request_mode
{
@@ -488,7 +488,7 @@
/** \brief Set ONE transport protocol
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
- @param protocol - supported vaules:
+ @param protocol - supported values:
1: UDP based LISP (default)
2: binary API
*/
@@ -803,7 +803,7 @@
/** \brief Shows relationship between vni and vrf/bd
@param dp_table - VRF index or bridge domain index
- @param vni - vitual network instance
+ @param vni - virtual network instance
*/
define one_eid_table_map_details
{
diff --git a/src/vnet/lisp-cp/one_api.c b/src/vnet/lisp-cp/one_api.c
index cc8839d..85c5d7e 100644
--- a/src/vnet/lisp-cp/one_api.c
+++ b/src/vnet/lisp-cp/one_api.c
@@ -1806,7 +1806,7 @@
/*
* one_api_hookup
* Add vpe's API message handlers to the table.
- * vlib has alread mapped shared memory and
+ * vlib has already mapped shared memory and
* added the client registration handlers.
* See .../vlib-api/vlibmemory/memclnt_vlib.c:memclnt_process()
*/
diff --git a/src/vnet/lisp-cp/one_cli.c b/src/vnet/lisp-cp/one_cli.c
index d812d00..a11138f 100644
--- a/src/vnet/lisp-cp/one_cli.c
+++ b/src/vnet/lisp-cp/one_cli.c
@@ -898,7 +898,7 @@
cmd)
{
u32 val = vnet_lisp_map_register_fallback_threshold_get ();
- vlib_cli_output (vm, "map register fallback treshold value: %d", val);
+ vlib_cli_output (vm, "map register fallback threshold value: %d", val);
return 0;
}
@@ -1150,7 +1150,7 @@
}
vlib_cli_output (vm, "%-35s%-20s%-30s%-20s%-s",
- "EID", "type", "locators", "ttl", "autoritative");
+ "EID", "type", "locators", "ttl", "authoritative");
if (print_all)
{