diff options
| author | Victor Nogueira <victor@mojatatu.com> | 2026-06-09 21:56:35 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-13 01:17:57 +0300 |
| commit | f7d109f176f249108b2feb35b7315dfd8b79d20a (patch) | |
| tree | 07c4bbcf5f5ec8cbdffa8e28c4ef1e5e6bce6c42 /tools/lib/python/feat/parse_features.py | |
| parent | d504a978572202ef43ac5ecfec2030adda64b13e (diff) | |
| download | linux-f7d109f176f249108b2feb35b7315dfd8b79d20a.tar.xz | |
selftests: tc: act_pedit: require matching IPv4 L4 protocol
Add a tdc test that checks the act_pedit extended L4 header mode does not
edit a packet whose IPv4 protocol does not match the selected transport
header.
The test installs an ingress pedit rule that sets the UDP destination
port, then injects a TCP packet with dport 2222. The UDP and TCP
destination ports sit at the same L4 offset, so a buggy kernel rewrites
the TCP dport. A second flower filter matches TCP dport 2222 and drops
the packet through an indexed gact action; the test then verifies via
JSON that this action saw exactly one packet, i.e. the dport was left
untouched and still matched 2222.
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/feat/parse_features.py')
0 files changed, 0 insertions, 0 deletions
