Skip to content
Commit 36479805 authored by Samuel Thibault's avatar Samuel Thibault Committed by Jakub Kicinski
Browse files

l2tp: Support different protocol versions with same IP/port quadruple



628bc3e5 ("l2tp: Support several sockets with same IP/port quadruple")
added support for several L2TPv2 tunnels using the same IP/port quadruple,
but if an L2TPv3 socket exists it could eat all the trafic. We thus have to
first use the version from the packet to get the proper tunnel, and only
then check that the version matches.

Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: default avatarJames Chapman <jchapman@katalix.com>
Link: https://lore.kernel.org/r/20240509205812.4063198-1-samuel.thibault@ens-lyon.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ec8c2574
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment