summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorZhixing Chen <running910@gmail.com>2026-07-08 12:22:44 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-07-21 11:23:30 +0200
commit96e37e2f618e931aa97af95e707dcdfb1ec41264 (patch)
treef744ea907ca82115562a629e60ae2a76b1758eea /include/linux
parent5521ae71e32a8069ed4ca6e792179dc57bc43ab2 (diff)
gtp: parse extension headers before reading inner protocol
GTPv1-U packets may carry a chain of extension headers before the inner IP packet. The receive path already parses and skips these extension headers, but it currently reads the inner protocol before doing so. As a result, the first extension header byte is interpreted as the inner IP version. Packets with extension headers are then dropped before PDP lookup. Parse the extension header chain before calling gtp_inner_proto(), so the inner protocol is read from the actual inner IP header. Fixes: c75fc0b9e5be ("gtp: identify tunnel via GTP device + GTP version + TEID + family") Signed-off-by: Zhixing Chen <running910@gmail.com> Link: https://patch.msgid.link/20260708042244.120898-1-running910@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions