08:40:18 | Start |
| == create an IPv6 socket == |
08:40:18 | socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
|
08:40:18 | return sockfd=4
|
| == set the value of multicast hoplimit to 0 == |
08:40:18 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:4)
|
08:40:18 | return 0
|
| == check whether multicast hoplimit is set correctly == |
08:40:18 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:0x7ffc81de7524)
|
08:40:18 | return length 4
|
| == set the value of multicast hoplimit to 64 == |
08:40:18 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:4)
|
08:40:18 | return 0
|
| == check whether multicast hoplimit is set correctly == |
08:40:18 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:0x7ffc81de7524)
|
08:40:18 | return length 4
|
| == set the value of hoplimit to 255 == |
08:40:18 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:4)
|
08:40:18 | return 0
|
| == check whether multicast hoplimit is set correctly == |
08:40:19 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_MULTICAST_HOPS, optval:0x7ffc81de7528, optlen:0x7ffc81de7524)
|
08:40:19 | return length 4
|
| OK |
08:40:19 | End |