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/26 16:32:59
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:32:59Start

== create an IPv6/UDP socket ==
16:32:59socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
16:32:59return sockfd=4
16:33:00tst_get_unused_port() get port 55020

== set IPV6_RECVPKTINFO to 1 ==
16:33:00setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVPKTINFO, optval:0x3ffecaf92e8, optlen:4)
16:33:00return 0

== bind socket to address ==
16:33:00bind(sockfd:4, my_addr:0x3ffecaf93c4, addrlen:28)
16:33:00return 0

== sendto message to itself ==
16:33:00sendto(sockfd:4, buf:0x1008070, len:17, flags:0, to:0x3ffecaf93c4, tolen:28)
16:33:00return 17

== recv msg from server ==
16:33:00recvmsg(sockfd:4, msg:0x3ffecaf9378, flags:0)
16:33:00return 17

the received destination address = 0000:0000:0000:0000:0000:0000:0000:0001, length = 36
16:33:00close(4)

OK
16:33:00End