Test Information

TitleA copy is not looped back if the IPV6_MULTICAST_LOOP option is set to 0
CommandLine./tst_mcast_loop_no_back --log=14.html --title=A copy is not looped back if the IPV6_MULTICAST_LOOP option is set to 0
TestVersionREL_1_1_18
Start2023/01/17 08:40:22
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:40:22Start

== create an IPv6 socket ==
08:40:22socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
08:40:22return sockfd=4
08:40:23tst_get_unused_port() get port 34957

== bind socket to address ==
08:40:23bind(sockfd:4, my_addr:0x7ffc783544f0, addrlen:28)
08:40:23return 0

== join to a multicast group on Link0 ==
08:40:23if_nametoindex(ifname:"dummy_ipv6")
08:40:23return 106
08:40:23inet_pton(af:AF_INET6, src:"ff03::1:ff00:100", dst:0x7ffc78354510)
08:40:23return 1, dst=ff03:0000:0000:0000:0000:0001:ff00:0100
08:40:23setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_JOIN_GROUP, optval:0x7ffc78354510, optlen:20)
08:40:23return 0

== set IPV6_MULTICAST_IF option to Link0 ==
08:40:23setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_IF, optval:0x7ffc78354348, optlen:4)
08:40:23return 0

== disabled IPV6_MULTICAST_LOOP option ==
08:40:23setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_LOOP, optval:0x7ffc7835434c, optlen:4)
08:40:23return 0
08:40:23inet_pton(af:AF_INET6, src:"ff03::1:ff00:100", dst:0x7ffc78354510)
08:40:23return 1, dst=ff03:0000:0000:0000:0000:0001:ff00:0100

== send multicast datagram to the group: fe80::686d:b9ff:fea2:3a1 ==
08:40:23sendto(sockfd:4, buf:0x7ffc78354350, len:24, flags:0, to:0x7ffc783544f0, tolen:28)
08:40:23return 24

== recv message from the group ==
08:40:23recvmsg(sockfd:4, msg:0x7ffc783544a0, flags:64)
08:40:23return -1
08:40:23close(4)

OK
08:40:23End