Test Information

TitleReceive Destination Options when the IPV6_RECVDSTOPTS socket option is enabled
CommandLine./tst_recv_dstopt --log=1.html --title=Receive Destination Options when the IPV6_RECVDSTOPTS socket option is enabled
TestVersionREL_1_1_18
Start2023/02/03 01:01:37
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:37Start

== create an IPv6/UDP socket ==
01:01:37socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
01:01:37return sockfd=4

== enable socket to receive destination options ==
01:01:37setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3ffdf379268, optlen:4)
01:01:37return 0

== set Destination options header of socket ==
01:01:37setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffdf3792e8, optlen:8)
01:01:37return 0
01:01:38tst_get_unused_port() get port 43857

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

== send message to itself ==
01:01:38sendto(sockfd:4, buf:0x1007de0, len:17, flags:0, to:0x3ffdf37933c, tolen:28)
01:01:38return 17

== receive message ==
01:01:38recvmsg(sockfd:4, msg:0x3ffdf3792f0, flags:64)
01:01:38return 17

== check the received destination option ==

the received destination option length: 24
01:01:38close(4)

OK
01:01:38End