Test Information

TitleSend Destination options header by specifies it as ancillary data in a call to sendmsg()
CommandLine./tst_send_dstopt_data --log=3.html --title=Send Destination options header by specifies it as ancillary data in a call to sendmsg()
TestVersionREL_1_1_18
Start2023/02/03 01:01:40
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:40Start

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

== enable socket to receive destination options ==
01:01:40setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3ffda8f8700, optlen:4)
01:01:40return 0
01:01:41tst_get_unused_port() get port 58990

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

== send message ==
01:01:42sendmsg(sockfd:4, msg:0x3ffda8f8788, flags:0)
01:01:42return 100

== receive message ==
01:01:42recvmsg(sockfd:4, msg:0x3ffda8f8788, flags:64)
01:01:42return 100

== check the received destination option ==

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

OK
01:01:42End