selftests: add selftest for UDP SO_PEEK_OFF support
authorJason Xing <kernelxing@tencent.com>
Mon, 2 Sep 2024 16:06:10 +0000 (00:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2024 12:10:43 +0000 (13:10 +0100)
commit5c26516f090363b548c51ce892b8bcc46c7dcdbc
treeaa211521dcc4da62e94ebaadae1f770b86fa0ee0
parentff09bc366fc45861b35dfeac97baadee16f65aec
selftests: add selftest for UDP SO_PEEK_OFF support

Add the SO_PEEK_OFF selftest for UDP. In this patch, I mainly do
three things:
1. rename tcp_so_peek_off.c
2. adjust for UDP protocol
3. add selftests into it

Suggested-by: Jon Maloy <jmaloy@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/sk_so_peek_off.c [new file with mode: 0644]
tools/testing/selftests/net/tcp_so_peek_off.c [deleted file]