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

Test Sequence Execution Log

16:33:32Start

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

== enable socket to receive destination options ==
16:33:32setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3fffecf85f0, optlen:4)
16:33:32return 0
16:33:33tst_get_unused_port() get port 43156

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

== send message ==
16:33:33sendmsg(sockfd:4, msg:0x3fffecf8678, flags:0)
16:33:33return 100

== receive message ==
16:33:33recvmsg(sockfd:4, msg:0x3fffecf8678, flags:64)
16:33:33return 100

== check the received destination option ==

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

OK
16:33:34End