aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/ipsec_format.c
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-01-19 13:30:23 +0000
committerOle Tr�an <otroan@employees.org>2021-01-21 10:58:39 +0000
commit03fabbd22215d306fb66c51f952480631d67c9dc (patch)
treea6de31d85d0a9ca8387d8f8172bea0fd08f98a30 /src/vnet/ipsec/ipsec_format.c
parent45d6d83761cd8c09c0a6430d11f70c37c3df256e (diff)
ipsec: Honour IPSec SA table-ID over API
Type: fix Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: Ib08fe356e4dc710dd60a96736c48b27129f06786
Diffstat (limited to 'src/vnet/ipsec/ipsec_format.c')
-rw-r--r--src/vnet/ipsec/ipsec_format.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/ipsec/ipsec_format.c b/src/vnet/ipsec/ipsec_format.c
index 552d446aa34..909254a1dc9 100644
--- a/src/vnet/ipsec/ipsec_format.c
+++ b/src/vnet/ipsec/ipsec_format.c
@@ -320,8 +320,10 @@ format_ipsec_sa (u8 * s, va_list * args)
if (ipsec_sa_is_set_IS_TUNNEL (sa))
{
- tx_table_id = fib_table_get_table_id (sa->tx_fib_index,
- FIB_PROTOCOL_IP4);
+ tx_table_id = fib_table_get_table_id (
+ sa->tx_fib_index,
+ (ipsec_sa_is_set_IS_TUNNEL_V6 (sa) ? FIB_PROTOCOL_IP6 :
+ FIB_PROTOCOL_IP4));
s = format (s, "\n table-ID %d tunnel %U src %U dst %U flags %U",
tx_table_id,
format_ip_dscp, sa->dscp,