diff options
| author | Joe Damato <joe@dama.to> | 2026-07-28 09:09:30 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-29 16:59:45 -0700 |
| commit | b75609e42bbc8fa23b83eb127c0a337a6e85f2ed (patch) | |
| tree | 8b2fb7c9c669d33dbb51d35666372db03fd03df0 /include/linux | |
| parent | f5a445d2a2a335b2011e90558ec9cdd48ae79ada (diff) | |
selftests/net: test PACKET_IGNORE_OUTGOING
Test that setsockopt PACKET_IGNORE_OUTGOING:
- works with valid values (0 and 1),
- rejects values outside of that range, and
When enabled for a loopback sniffer, it only produces 1 copy of the
packet (rx) instead of two copies (tx and rx). Use sll_pkttype to check
the direction of the packet to ensure the correct packet is sniffed.
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20260728160935.4128982-6-joe@dama.to
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
