summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2021-02-05 19:04:42 +0100
committerNeale Ranns <neale@graphiant.com>2021-02-06 10:07:48 +0000
commit048189e7a15270939b23526eee83c543fb2c7567 (patch)
tree994915e397e78609666e35d6e950697c186baba6 /src
parentee1cb469b2ddc4e9cb611413ff9e7c2c29e6a064 (diff)
ipsec: CLI improvement for udp port encap
Change-Id: I59f55db7209549ad43a1205470a2f5ea9ea8a1c7 Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: feature
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ipsec/ipsec_cli.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec_cli.c b/src/vnet/ipsec/ipsec_cli.c
index 0b0ed6c4f12..b708e50378c 100644
--- a/src/vnet/ipsec/ipsec_cli.c
+++ b/src/vnet/ipsec/ipsec_cli.c
@@ -97,6 +97,7 @@ ipsec_sa_add_del_command_fn (vlib_main_t * vm,
ipsec_key_t ck = { 0 };
ipsec_key_t ik = { 0 };
u32 id, spi, salt, sai;
+ int i = 0;
u16 udp_src, udp_dst;
int is_add, rv;
u32 m_args = 0;
@@ -158,6 +159,10 @@ ipsec_sa_add_del_command_fn (vlib_main_t * vm,
else if (unformat (line_input, "tunnel-dst %U",
unformat_ip46_address, &tun_dst, IP46_TYPE_ANY))
;
+ else if (unformat (line_input, "udp-src-port %d", &i))
+ udp_src = i;
+ else if (unformat (line_input, "udp-dst-port %d", &i))
+ udp_dst = i;
else if (unformat (line_input, "tx-table-id %d", &tx_table_id))
;
else if (unformat (line_input, "inbound"))