aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/ipsec.h
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2018-12-10 11:19:08 +0100
committerNeale Ranns <nranns@cisco.com>2018-12-11 12:42:09 +0000
commit4c422f9a3c9d5a4ecae3f4ef6bee16bb8ce35bb2 (patch)
tree4e144869c29d93d2df240058a4b871f60c96b654 /src/vnet/ipsec/ipsec.h
parent240f69aed757720cfb78a140aaa84eb31db198f4 (diff)
Add IPSec interface FIB index for TX packet
This patch adds a configuration parameter to IPSec tunnels, enabling custom FIB selection for encapsulated packets. Although this option could also be used for policy-based IPSec, this change only enables it for virtual-tunnel-interface mode. Note that this patch does change the API default behavior regarding TX fib selection for encapsulated packets. Previous behavior was to use the same FIB after and before encap. The new default behavior consists in using the FIB 0 as default. Change-Id: I5c212af909940a8cf6c7e3971bdc7623a2296452 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec.h')
-rw-r--r--src/vnet/ipsec/ipsec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec.h b/src/vnet/ipsec/ipsec.h
index d40767001b8..691bc071bba 100644
--- a/src/vnet/ipsec/ipsec.h
+++ b/src/vnet/ipsec/ipsec.h
@@ -139,6 +139,7 @@ typedef struct
ip46_address_t tunnel_src_addr;
ip46_address_t tunnel_dst_addr;
+ u32 tx_fib_index;
u32 salt;
/* runtime */
@@ -183,6 +184,7 @@ typedef struct
u8 renumber;
u32 show_instance;
u8 udp_encap;
+ u32 tx_table_id;
} ipsec_add_del_tunnel_args_t;
typedef struct