Test Information

TitleUse the given value when the IPV6_MULTICAST_HOPS option is set to a valid value
CommandLine./tst_mcast_hops_set_to_valid --log=10.html --title=Use the given value when the IPV6_MULTICAST_HOPS option is set to a valid value
TestVersionREL_1_1_18
Start2023/02/03 01:00:17
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:00:17Start

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

== set the value of multicast hoplimit to 0 ==
01:00:17setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffc65f8bf0, optlen:4)
01:00:17return 0

== check whether multicast hoplimit is set correctly ==
01:00:17getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffc65f8bf0, optlen:0x3ffc65f8bec)
01:00:17return length 4

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

== check whether multicast hoplimit is set correctly ==
01:00:17getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffc65f8bf0, optlen:0x3ffc65f8bec)
01:00:17return length 4

== set the value of hoplimit to 255 ==
01:00:17setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffc65f8bf0, optlen:4)
01:00:17return 0

== check whether multicast hoplimit is set correctly ==
01:00:17getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x3ffc65f8bf0, optlen:0x3ffc65f8bec)
01:00:17return length 4

OK
01:00:17End