Test Information

TitleGet the value of IPV6_V6ONLY option from kernel
CommandLine./tst_v6only_get --log=21.html --title=Get the value of IPV6_V6ONLY option from kernel
TestVersionREL_1_1_18
Start2023/02/03 01:00:32
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:00:32Start

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

== get the default value of IPV6_V6ONLY option ==
01:00:33getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x3ffca078900, optlen:0x3ffca0788fc)
01:00:33return v6only=0

== set the IPV6_V6ONLY option to 1 ==
01:00:33setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x3ffca078900, optlen:4)
01:00:33return 0

== get the value of IPV6_V6ONLY option ==
01:00:33getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x3ffca078900, optlen:0x3ffca0788fc)
01:00:33return v6only=1

OK
01:00:33End