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/02/03 01:01:38
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:38Start

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

== disable socket to receive destination options ==
01:01:39setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3fff71f87d8, optlen:4)
01:01:39return 0

== set Destination options header of socket ==
01:01:39setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3fff71f8858, optlen:8)
01:01:39return 0
01:01:40tst_get_unused_port() get port 47224

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

== send message to itself ==
01:01:40sendto(sockfd:4, buf:0x1007dc0, len:17, flags:0, to:0x3fff71f88ac, tolen:28)
01:01:40return 17

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

== check the received destination option ==
01:01:40close(4)

OK
01:01:40End