Test Information

TitleSend Destination options header by specifies it using setsockopt()
CommandLine./tst_send_dstopt_setopt --log=4.html --title=Send Destination options header by specifies it using setsockopt()
TestVersionREL_1_1_18
Start2023/02/03 01:01:42
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:42Start

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

== enable socket to receive destination options ==
01:01:42setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3fffcbf8200, optlen:4)
01:01:42return 0

== set Destination options header of socket ==
01:01:42setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3fffcbf8280, optlen:8)
01:01:42return 0
01:01:43tst_get_unused_port() get port 43299

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

== send message to itself ==
01:01:44sendto(sockfd:4, buf:0x1007ee0, len:17, flags:0, to:0x3fffcbf82d4, tolen:28)
01:01:44return 17

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

== check the received destination option ==

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

OK
01:01:44End