diff options
| author | Xia Yan <yanxia@cmss.chinamobile.com> | 2026-11-09 09:45:26 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-12 08:40:47 -0800 |
| commit | 6785ad21822c67f25647c3a2f609a56dddae5ffb (patch) | |
| tree | 8972252b4f86bdf54964bf3bc4fc1dc34e4ccf73 /tools/perf/scripts/python/bin | |
| parent | f778e80b3daf5033fb996f45c2b5d0ce1e82c0a7 (diff) | |
selftests: net: exercise SO_MARK on connected sockets
cmsg_so_mark.sh sends to explicit destinations, so it does not test the
route cached by connect().
Add -k to cmsg_sender to connect first and send without msg_name.
Check connected IPv4 and IPv6 UDP, ping and raw sockets with equal,
prohibited and zero per-message marks.
Add an exact mark 0 prohibit rule before the connected cases. Connect
with an allowed socket mark, then require rejection of a mark 0 cmsg.
The same test fails four IPv6 cases before the kernel fix and passes
all 54 with it.
Signed-off-by: Xia Yan <yanxia@cmss.chinamobile.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20261109014400.9025-2-yanxia@cmss.chinamobile.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
