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/17 08:41:43
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:43Start

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

== enable socket to receive destination options ==
08:41:44setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x7ffc53bcb86c, optlen:4)
08:41:44return 0
08:41:45tst_get_unused_port() get port 52968

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

== send message ==
08:41:45sendmsg(sockfd:4, msg:0x7ffc53bcb900, flags:0)
08:41:45return 100

== receive message ==
08:41:45recvmsg(sockfd:4, msg:0x7ffc53bcb900, flags:64)
08:41:45return 100

== check the received destination option ==

the received destination option length: 24
08:41:45close(4)

OK
08:41:45End