summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-07-17 11:44:15 +0200
committerDave Barach <openvpp@barachs.net>2020-07-28 12:14:54 +0000
commit2a10ee3a99b6af256f09e456c32063394481a84a (patch)
tree563dd3e8369dc3313e37c6cbd5e198a1057cf633 /src
parent4c4223edfd46841062340fe449cd97a93dccc498 (diff)
sr: fix prefix_len type parsing
prefix_len is parsed using '%u' format requiring an integer. Type: fix Change-Id: I9f31fa60e80d4f45fe456f3fd6c94f123cfc99ea Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/srv6/sr_localsid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_localsid.c b/src/vnet/srv6/sr_localsid.c
index 67e80051081..f632415c091 100644
--- a/src/vnet/srv6/sr_localsid.c
+++ b/src/vnet/srv6/sr_localsid.c
@@ -328,7 +328,7 @@ sr_cli_localsid_command_fn (vlib_main_t * vm, unformat_input_t * input,
vnet_main_t *vnm = vnet_get_main ();
ip6_sr_main_t *sm = &sr_main;
u32 sw_if_index = (u32) ~ 0, vlan_index = (u32) ~ 0, fib_index = 0;
- u16 prefix_len = 0;
+ int prefix_len = 0;
int is_del = 0;
int end_psp = 0;
ip6_address_t resulting_address;