selftests: net: cmsg_so_mark: test ICMP and RAW sockets
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Feb 2022 00:36:45 +0000 (16:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Feb 2022 15:04:51 +0000 (15:04 +0000)
commit0344488e11cab982d2b2402a1689ced1815680fc
treeeded587c6bc7c0c3719ddad8729297a291cca3d6
parentde17e305a81012120c23380a94ed22c7e8bf324f
selftests: net: cmsg_so_mark: test ICMP and RAW sockets

Use new capabilities of cmsg_sender to test ICMP and RAW sockets,
previously only UDP was tested.

Before SO_MARK support was added to ICMPv6:

  # ./cmsg_so_mark.sh
   Case ICMP rejection returned 0, expected 1
  FAIL - 1/12 cases failed

After:

  # ./cmsg_so_mark.sh
  OK

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