selftests: net: test IPV6_DONTFRAG
authorJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 01:21:17 +0000 (17:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2022 14:22:09 +0000 (14:22 +0000)
commit6f97c7c605d63d8f83f102a768ddfd0ad553fa3f
tree2fba1a9f4c199bacfe1f26f1815f7d399cf06931
parent13651224c00b74a02c731b7840577f14e0311c83
selftests: net: test IPV6_DONTFRAG

Test setting IPV6_DONTFRAG via setsockopt and cmsg
across socket types.

Output without the kernel support (this series):

    Case DONTFRAG ICMP setsock returned 0, expected 1
    Case DONTFRAG ICMP cmsg returned 0, expected 1
    Case DONTFRAG ICMP both returned 0, expected 1
    Case DONTFRAG ICMP diff returned 0, expected 1
  FAIL - 4/24 cases failed

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/cmsg_ipv6.sh [new file with mode: 0755]
tools/testing/selftests/net/cmsg_sender.c