VPP-143: Correctly drop local l2tp packets when no session is found 68/1668/2
authorPierre Pfister <ppfister@cisco.com>
Mon, 20 Jun 2016 13:52:22 +0000 (14:52 +0100)
committerChris Luke <chris_luke@cable.comcast.com>
Mon, 20 Jun 2016 15:32:08 +0000 (15:32 +0000)
commita026eb1a6dafe8dcf50176bc68425e0789db22d3
tree3940661a7189f789f0d6941543b9cde032f09acd
parente0965d4e05c3d43cec43c1fd31d6bc774ca79310
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>
vnet/vnet/l2tp/decap.c
vnet/vnet/l2tp/l2tp.c
vnet/vnet/l2tp/l2tp.h