selftests: net: make cmsg_so_mark ready for more options
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Feb 2022 00:36:43 +0000 (16:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Feb 2022 15:04:51 +0000 (15:04 +0000)
commit49b78613029642eec9601af6bc6c716e10929106
tree0c1b017dce58f2d12da8e76e99decdfe2557e639
parenta086ee24cce21994150789fc83f31ee7f5a9cf2d
selftests: net: make cmsg_so_mark ready for more options

Parametrize the code so that it can support UDP and ICMP
sockets in the future, and more cmsg types.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/cmsg_sender.c
tools/testing/selftests/net/cmsg_so_mark.sh