Test Information

TitleAn attempt to set or get IPV6_CHECKSUM for a non-raw IPv6 socket will fail
CommandLine./tst_checksum_no_raw --log=3.html --title=An attempt to set or get IPV6_CHECKSUM for a non-raw IPv6 socket will fail
TestVersionREL_1_1_18
Start2023/02/03 01:00:50
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:00:50Start

== create an IPv6 socket ==
01:00:50socket(domain:AF_INET6, type:SOCK_STREAM, protocol:0)
01:00:50return sockfd=4

== set the value of IPV6_CHECKSUM option ==
01:00:50setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x3ffce978530, optlen:4)
01:00:50return error ENOPROTOOPT
01:00:50close(4)

== create an IPv6 socket ==
01:00:50socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
01:00:50return sockfd=4

== set the value of IPV6_CHECKSUM option ==
01:00:51setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x3ffce978530, optlen:4)
01:00:51return error ENOPROTOOPT
01:00:51close(4)

== create an IPv6 socket ==
01:00:51socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_ICMPV6)
01:00:51return sockfd=4

== set the value of IPV6_CHECKSUM option ==
01:00:51setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x3ffce978530, optlen:4)
01:00:51return error EINVAL
01:00:51close(4)

OK
01:00:51End