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

Test Sequence Execution Log

08:40:15Start

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

== get the default value of hoplimit option ==
08:40:15getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_UNICAST_HOPS, optval:0x7ffc1220c398, optlen:0x7ffc1220c394)
08:40:15return hoplimit=64

== set the value of hoplimit option to 64 ==
08:40:15setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_UNICAST_HOPS, optval:0x7ffc1220c398, optlen:4)
08:40:15return 0

== get the value of hoplimit option ==
08:40:15getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_UNICAST_HOPS, optval:0x7ffc1220c398, optlen:0x7ffc1220c394)
08:40:15return hoplimit=64

OK
08:40:15End