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

Test Sequence Execution Log

08:40:18Start

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

== set the value of multicast hoplimit to 0 ==
08:40:18setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:4)
08:40:18return 0

== check whether multicast hoplimit is set correctly ==
08:40:18getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:0x7ffc81de7524)
08:40:18return length 4

== set the value of multicast hoplimit to 64 ==
08:40:18setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:4)
08:40:18return 0

== check whether multicast hoplimit is set correctly ==
08:40:18getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:0x7ffc81de7524)
08:40:18return length 4

== set the value of hoplimit to 255 ==
08:40:18setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:4)
08:40:18return 0

== check whether multicast hoplimit is set correctly ==
08:40:19getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:0x7ffc81de7524)
08:40:19return length 4

OK
08:40:19End