Test Information

TitleGet the value of IPV6_MULTICAST_HOPS option from kernel
CommandLine./tst_mcast_hops_get --log=12.html --title=Get the value of IPV6_MULTICAST_HOPS option from kernel
TestVersionREL_1_1_18
Start2023/02/03 01:00:18
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:00:18Start

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

== get the default value of hoplimit option ==
01:00:18getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffcd9f90e0, optlen:0x3ffcd9f90dc)
01:00:18return length 4

== set the value of hoplimit option to 64 ==
01:00:18setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffcd9f90e0, optlen:4)
01:00:18return 0

== get the value of hoplimit option ==
01:00:18getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffcd9f90e0, optlen:0x3ffcd9f90dc)
01:00:18return length 4

OK
01:00:18End