diff options
| author | Zhixing Chen <running910@gmail.com> | 2026-07-08 12:22:44 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-07-21 11:23:30 +0200 |
| commit | 96e37e2f618e931aa97af95e707dcdfb1ec41264 (patch) | |
| tree | f744ea907ca82115562a629e60ae2a76b1758eea /tools/perf/scripts/python/stackcollapse.py | |
| parent | 5521ae71e32a8069ed4ca6e792179dc57bc43ab2 (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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
