Test Information

TitleReceiving Destination Address when the IPV6_RECVPKTINFO socket option is enabled
CommandLine./tst_recv_dst_addr_udp --log=5.html --title=Receiving Destination Address when the IPV6_RECVPKTINFO socket option is enabled
TestVersionREL_1_1_18
Start2023/02/03 01:01:07
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:07Start

== create an IPv6/UDP socket ==
01:01:07socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
01:01:07return sockfd=4
01:01:08tst_get_unused_port() get port 56372

== set IPV6_RECVPKTINFO to 1 ==
01:01:08setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVPKTINFO, optval:0x3ffd6778708, optlen:4)
01:01:08return 0

== bind socket to address ==
01:01:09bind(sockfd:4, my_addr:0x3ffd67787e4, addrlen:28)
01:01:09return 0

== sendto message to itself ==
01:01:09sendto(sockfd:4, buf:0x1008070, len:17, flags:0, to:0x3ffd67787e4, tolen:28)
01:01:09return 17

== recv msg from server ==
01:01:09recvmsg(sockfd:4, msg:0x3ffd6778798, flags:0)
01:01:09return 17

the received destination address = 0000:0000:0000:0000:0000:0000:0000:0001, length = 36
01:01:09close(4)

OK
01:01:09End