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

Test Sequence Execution Log

08:40:34Start

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

== get the default value of IPV6_V6ONLY option ==
08:40:34getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x7ffe0da91c38, optlen:0x7ffe0da91c34)
08:40:34return v6only=0

== set the IPV6_V6ONLY option to 1 ==
08:40:34setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x7ffe0da91c38, optlen:4)
08:40:34return 0

== get the value of IPV6_V6ONLY option ==
08:40:34getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_V6ONLY, optval:0x7ffe0da91c38, optlen:0x7ffe0da91c34)
08:40:34return v6only=1

OK
08:40:34End