summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-10-12 06:23:58 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2016-10-13 08:13:58 +0000
commit388267a2097821e98f35cdf1b87903281812c5b6 (patch)
treec4e6956a8abd7d4178e0fbe1e43a7f3dcb1a2978
parent9876520f9ba746ed4d9923f392911c4f1888a105 (diff)
VPP-483: Fixed IPSec tunnel interface
Change-Id: I570f57218293a4824f83b38575eacdbe3da540d8 Signed-off-by: Matus Fabian <matfabia@cisco.com>
-rw-r--r--vnet/vnet/ipsec/ipsec_if.c11
1 files changed, 10 insertions, 1 deletions
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