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

Test Sequence Execution Log

16:33:30Start

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

== disable socket to receive destination options ==
16:33:30setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3ffe74f8458, optlen:4)
16:33:30return 0

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

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

== send message to itself ==
16:33:32sendto(sockfd:4, buf:0x1007dc0, len:17, flags:0, to:0x3ffe74f852c, tolen:28)
16:33:32return 17

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

== check the received destination option ==
16:33:32close(4)

OK
16:33:32End