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/01/26 16:32:23
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:32:23Start

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

== get the default value of IPV6_V6ONLY option ==
16:32:24getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x3fffa478d60, optlen:0x3fffa478d5c)
16:32:24return v6only=0

== set the IPV6_V6ONLY option to 1 ==
16:32:24setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x3fffa478d60, optlen:4)
16:32:24return 0

== get the value of IPV6_V6ONLY option ==
16:32:24getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x3fffa478d60, optlen:0x3fffa478d5c)
16:32:24return v6only=1

OK
16:32:24End