Anna Emese Nyiri wrote: > Introduce tests to verify the correct functionality of the SO_RCVMARK and > SO_RCVPRIORITY socket options. > > Key changes include: > > - so_rcv_listener.c: Implements a receiver application to test the correct > behavior of the SO_RCVMARK and SO_RCVPRIORITY options. > - test_so_rcv.sh: Provides a shell script to automate testing for these > options. > - Makefile: Integrates test_so_rcv.sh into the kernel selftests. > > v3: > > - Add the C part to TEST_GEN_FILES. > - Ensure the test fails if no cmsg of type opt.name is received > in so_rcv_listener.c > - Rebased on net-next. > > v2: > > https://lore.kernel.org/netdev/[email protected]/ > - Add the C part to TEST_GEN_PROGS and .gitignore. > - Modify buffer space and add IPv6 testing option > in so_rcv_listener.c. > - Add IPv6 testing, remove unnecessary comment, > add kselftest exit codes, run both binaries in a namespace, > and add sleep in test_so_rcv.sh. > The sleep was added to ensure that the listener process has > enough time to start before the sender attempts to connect. > - Rebased on net-next. > > v1: > > https://lore.kernel.org/netdev/[email protected]/ > > Suggested-by: Jakub Kicinski <[email protected]> > Suggested-by: Ferenc Fejes <[email protected]> > Signed-off-by: Anna Emese Nyiri <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
