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

Test Sequence Execution Log

08:41:10Start

== create an IPv6/UDP socket ==
08:41:10socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
08:41:10return sockfd=4
08:41:11tst_get_unused_port() get port 43068

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

== bind socket to address ==
08:41:11bind(sockfd:4, my_addr:0x7fff4ec87510, addrlen:28)
08:41:11return 0

== sendto message to itself ==
08:41:11sendto(sockfd:4, buf:0x407010, len:17, flags:0, to:0x7fff4ec87510, tolen:28)
08:41:11return 17

== recv msg from server ==
08:41:11recvmsg(sockfd:4, msg:0x7fff4ec874c0, flags:0)
08:41:11return 17

the received destination address = 0000:0000:0000:0000:0000:0000:0000:0001, length = 36
08:41:11close(4)

OK
08:41:11End