aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2tp/l2tp.c
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-06-20 14:52:22 +0100
committerChris Luke <chris_luke@cable.comcast.com>2016-06-20 15:32:08 +0000
commita026eb1a6dafe8dcf50176bc68425e0789db22d3 (patch)
tree3940661a7189f789f0d6941543b9cde032f09acd /vnet/vnet/l2tp/l2tp.c
parente0965d4e05c3d43cec43c1fd31d6bc774ca79310 (diff)
VPP-143: Correctly drop local l2tp packets when no session is found
When receiving a local ipv6 packet containing an l2tp packet not associated with any session, l2tp node was handling the packet as if provided by an ipv6 feature, hence crashing. This patch fixes the issue by correctly dropping the packet instead. This patch also fixes a typo from commit d65346098daf896. Change-Id: I1b377fc5685568c16831920227671feffac64287 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet/vnet/l2tp/l2tp.c')
-rw-r--r--vnet/vnet/l2tp/l2tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/l2tp/l2tp.c b/vnet/vnet/l2tp/l2tp.c
index db4b4f5a29b..4380137704b 100644
--- a/vnet/vnet/l2tp/l2tp.c
+++ b/vnet/vnet/l2tp/l2tp.c
@@ -582,7 +582,7 @@ int l2tpv3_interface_enable_disable (vnet_main_t * vnm,
if (pool_is_free_index (vnm->interface_main.sw_interfaces, sw_if_index))
return VNET_API_ERROR_INVALID_SW_IF_INDEX;
- feature_index = im->ip6_unicast_rx_feature_ipsec;
+ feature_index = im->ip6_unicast_rx_feature_l2tp_decap;
ci = rx_cm->config_index_by_sw_if_index[sw_if_index];
ci = (enable_disable