summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/ipsec_spd.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-06 14:14:23 +0100
committerMatthew Smith <mgsmith@netgate.com>2020-11-06 21:38:31 +0000
commit40aa27ef7cf63daa11974d0b06ea9ee1a102cb32 (patch)
treeed0dd584b7cf9e7af51c5acb10f193df996047d6 /src/vnet/ipsec/ipsec_spd.c
parent1f85dad1e5f85b049c1bf829aca7aa6ad0b4fc70 (diff)
ipsec: add support for tx-table-id in cli + example
Type: improvement Change-Id: I840741dfe040718b682935cdbcb0ba958d45a591 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_spd.c')
-rw-r--r--src/vnet/ipsec/ipsec_spd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_spd.c b/src/vnet/ipsec/ipsec_spd.c
index ef41c2286c1..4e8017c35ff 100644
--- a/src/vnet/ipsec/ipsec_spd.c
+++ b/src/vnet/ipsec/ipsec_spd.c
@@ -77,7 +77,7 @@ ipsec_set_interface_spd (vlib_main_t * vm, u32 sw_if_index, u32 spd_id,
p = hash_get (im->spd_index_by_sw_if_index, sw_if_index);
if (p && is_add)
- return VNET_API_ERROR_SYSCALL_ERROR_1; /* spd already assigned */
+ return VNET_API_ERROR_SYSCALL_ERROR_2; /* spd already assigned */
if (is_add)
{