aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-cp
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-09-22 05:32:50 -0700
committerDamjan Marion <dmarion@me.com>2018-09-24 08:08:03 +0000
commitbdc0e6b7204ea0211d4f7881497e4306586fb9ef (patch)
tree199b4da1aea679f0626451692a57476a70286524 /src/vnet/lisp-cp
parent6a4375e02d8dd4ebcc2f79ee9f6abbafdd2f674c (diff)
Trivial: Clean up some typos.
Change-Id: I085615fde1f966490f30ed5d32017b8b088cfd59 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vnet/lisp-cp')
-rw-r--r--src/vnet/lisp-cp/control.c8
-rw-r--r--src/vnet/lisp-cp/control.h2
-rw-r--r--src/vnet/lisp-cp/gid_dictionary.c2
-rw-r--r--src/vnet/lisp-cp/lisp.api4
-rw-r--r--src/vnet/lisp-cp/lisp_api.c2
-rw-r--r--src/vnet/lisp-cp/lisp_cli.c2
-rw-r--r--src/vnet/lisp-cp/lisp_msg_serdes.c2
-rw-r--r--src/vnet/lisp-cp/lisp_types.c2
-rw-r--r--src/vnet/lisp-cp/one.api6
-rw-r--r--src/vnet/lisp-cp/one_api.c2
-rw-r--r--src/vnet/lisp-cp/one_cli.c4
11 files changed, 18 insertions, 18 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index b2c8cd0dfaa..67b1fc4822a 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -1303,7 +1303,7 @@ vnet_lisp_add_mapping (vnet_lisp_add_del_mapping_args_t * a,
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 @@ vnet_lisp_add_mapping (vnet_lisp_add_del_mapping_args_t * a,
/**
* 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 @@ lisp_cp_lookup_inline (vlib_main_t * vm,
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 @@ send_map_reply (lisp_cp_main_t * lcm, u32 mi, ip_address_t * dst,
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 e7040949dda..d8318b5530c 100644
--- a/src/vnet/lisp-cp/control.h
+++ b/src/vnet/lisp-cp/control.h
@@ -265,7 +265,7 @@ typedef struct
/* 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 c3b93301a41..73aecbe3408 100644
--- a/src/vnet/lisp-cp/gid_dictionary.c
+++ b/src/vnet/lisp-cp/gid_dictionary.c
@@ -893,7 +893,7 @@ add_del_sd (gid_dictionary_t * db, u32 vni, source_dest_t * key, u32 value,
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 b1bea092273..708510cec87 100644
--- a/src/vnet/lisp-cp/lisp.api
+++ b/src/vnet/lisp-cp/lisp.api
@@ -276,7 +276,7 @@ define show_lisp_map_register_state_reply
@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 @@ define lisp_adjacencies_get
/** \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 cb21dd1b155..b116ecf4239 100644
--- a/src/vnet/lisp-cp/lisp_api.c
+++ b/src/vnet/lisp-cp/lisp_api.c
@@ -1267,7 +1267,7 @@ vl_api_show_lisp_pitr_t_handler (vl_api_show_lisp_pitr_t * mp)
/*
* 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 b75f0345075..a044d23ed53 100644
--- a/src/vnet/lisp-cp/lisp_cli.c
+++ b/src/vnet/lisp-cp/lisp_cli.c
@@ -834,7 +834,7 @@ lisp_show_eid_table_command_fn (vlib_main_t * vm,
}
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 aee4f25e6a6..25188b46189 100644
--- a/src/vnet/lisp-cp/lisp_msg_serdes.c
+++ b/src/vnet/lisp-cp/lisp_msg_serdes.c
@@ -119,7 +119,7 @@ nonce_build (u32 seed)
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 d118717ae10..fb3fa6cc33e 100644
--- a/src/vnet/lisp-cp/lisp_types.c
+++ b/src/vnet/lisp-cp/lisp_types.c
@@ -871,7 +871,7 @@ ip_address_copy (ip_address_t * dst, const ip_address_t * src)
{
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 7f0f5a9fbb1..f02caf2be96 100644
--- a/src/vnet/lisp-cp/one.api
+++ b/src/vnet/lisp-cp/one.api
@@ -324,7 +324,7 @@ define show_one_map_register_state_reply
@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 @@ manual_print manual_endian define one_ndp_entries_get_reply
/** \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 @@ define one_adjacencies_get
/** \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 cc8839d66e6..85c5d7e1945 100644
--- a/src/vnet/lisp-cp/one_api.c
+++ b/src/vnet/lisp-cp/one_api.c
@@ -1806,7 +1806,7 @@ vl_api_one_show_petr_mode_t_handler (vl_api_one_show_petr_mode_t * mp)
/*
* 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 d812d00e66b..a11138f822a 100644
--- a/src/vnet/lisp-cp/one_cli.c
+++ b/src/vnet/lisp-cp/one_cli.c
@@ -898,7 +898,7 @@ lisp_map_register_fallback_threshold_show_command_fn (vlib_main_t * vm,
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 @@ lisp_show_eid_table_command_fn (vlib_main_t * vm,
}
vlib_cli_output (vm, "%-35s%-20s%-30s%-20s%-s",
- "EID", "type", "locators", "ttl", "autoritative");
+ "EID", "type", "locators", "ttl", "authoritative");
if (print_all)
{