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/01/17 08:40:52
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:40:52Start

== create an IPv6 socket ==
08:40:52socket(domain:AF_INET6, type:SOCK_STREAM, protocol:0)
08:40:52return sockfd=4

== set the value of IPV6_CHECKSUM option ==
08:40:52setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x7ffd3d8e89b8, optlen:4)
08:40:53return error ENOPROTOOPT
08:40:53close(4)

== create an IPv6 socket ==
08:40:53socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
08:40:53return sockfd=4

== set the value of IPV6_CHECKSUM option ==
08:40:53setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x7ffd3d8e89b8, optlen:4)
08:40:53return error ENOPROTOOPT
08:40:53close(4)

== create an IPv6 socket ==
08:40:53socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_ICMPV6)
08:40:53return sockfd=4

== set the value of IPV6_CHECKSUM option ==
08:40:53setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x7ffd3d8e89b8, optlen:4)
08:40:53return error EINVAL
08:40:53close(4)

OK
08:40:53End