Test Information

TitleCan not receive Destination Options when the IPV6_RECVDSTOPTS socket option is disabled
CommandLine./tst_recv_no_dstopt --log=2.html --title=Can not receive Destination Options when the IPV6_RECVDSTOPTS socket option is disabled
TestVersionREL_1_1_18
Start2023/01/17 08:41:42
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:42Start

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

== disable socket to receive destination options ==
08:41:42setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x7ffcd194620c, optlen:4)
08:41:42return 0

== set Destination options header of socket ==
08:41:42setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7ffcd1946298, optlen:8)
08:41:42return 0
08:41:43tst_get_unused_port() get port 37536

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

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

== receive message ==
08:41:43recvmsg(sockfd:4, msg:0x7ffcd19462a0, flags:64)
08:41:43return 17

== check the received destination option ==
08:41:43close(4)

OK
08:41:43End