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/01/26 16:33:28
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:33:28Start

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

== enable socket to receive destination options ==
16:33:28setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3fffb478db8, optlen:4)
16:33:28return 0

== set Destination options header of socket ==
16:33:29setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3fffb478e38, optlen:8)
16:33:29return 0
16:33:30tst_get_unused_port() get port 34842

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

== send message to itself ==
16:33:30sendto(sockfd:4, buf:0x1007de0, len:17, flags:0, to:0x3fffb478e8c, tolen:28)
16:33:30return 17

== receive message ==
16:33:30recvmsg(sockfd:4, msg:0x3fffb478e40, flags:64)
16:33:30return 17

== check the received destination option ==

the received destination option length: 24
16:33:30close(4)

OK
16:33:30End