selftests: net: test IPV6_HOPLIMIT
authorJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 01:21:19 +0000 (17:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2022 14:22:09 +0000 (14:22 +0000)
commit05ae83d5a4a23f7323dc0341b675c0a2002d94dd
treeaead2267be3a520ca991a9a0e215a2b8bc0e9b7b
parent9657ad09e1fa04911034d8aac28d4377dc991eb5
selftests: net: test IPV6_HOPLIMIT

Test setting IPV6_HOPLIMIT via setsockopt and cmsg
across socket types.

Output without the kernel support (this series):

  Case HOPLIMIT ICMP cmsg - packet data returned 1, expected 0
  Case HOPLIMIT ICMP diff - packet data returned 1, expected 0

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