From 388267a2097821e98f35cdf1b87903281812c5b6 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Wed, 12 Oct 2016 06:23:58 -0700 Subject: [PATCH] VPP-483: Fixed IPSec tunnel interface Change-Id: I570f57218293a4824f83b38575eacdbe3da540d8 Signed-off-by: Matus Fabian --- vnet/vnet/ipsec/ipsec_if.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vnet/vnet/ipsec/ipsec_if.c b/vnet/vnet/ipsec/ipsec_if.c index f4fad8d95b3..13901efe03e 100644 --- a/vnet/vnet/ipsec/ipsec_if.c +++ b/vnet/vnet/ipsec/ipsec_if.c @@ -43,9 +43,18 @@ VNET_DEVICE_CLASS (ipsec_device_class, static) = .name = "IPSec",.format_device_name = format_ipsec_name,.format_tx_trace = format_ipsec_if_output_trace,.tx_function = dummy_interface_tx,}; +static uword +dummy_set_rewrite (vnet_main_t * vnm, + u32 sw_if_index, + u32 l3_type, + void *dst_address, void *rewrite, uword max_rewrite_bytes) +{ + return 0; +} + VNET_HW_INTERFACE_CLASS (ipsec_hw_class) = { -.name = "IPSec",}; +.name = "IPSec",.set_rewrite = dummy_set_rewrite,}; static int -- 2.16.6