Test Information

TitleGet the value of IPV6_UNICAST_HOPS option from kernel
CommandLine./tst_hop_limit_get --log=5.html --title=Get the value of IPV6_UNICAST_HOPS option from kernel
TestVersionREL_1_1_18
Start2023/01/26 16:32:04
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:32:04Start

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

== get the default value of hoplimit option ==
16:32:04getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_UNICAST_HOPS, optval:0x3ffe81f8c70, optlen:0x3ffe81f8c6c)
16:32:04return hoplimit=64

== set the value of hoplimit option to 64 ==
16:32:05setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_UNICAST_HOPS, optval:0x3ffe81f8c70, optlen:4)
16:32:05return 0

== get the value of hoplimit option ==
16:32:05getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_UNICAST_HOPS, optval:0x3ffe81f8c70, optlen:0x3ffe81f8c6c)
16:32:05return hoplimit=64

OK
16:32:05End