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

Test Sequence Execution Log

16:33:34Start

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

== enable socket to receive destination options ==
16:33:34setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x3ffda378900, optlen:4)
16:33:34return 0

== set Destination options header of socket ==
16:33:34setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffda378980, optlen:8)
16:33:34return 0
16:33:35tst_get_unused_port() get port 34078

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

== send message to itself ==
16:33:35sendto(sockfd:4, buf:0x1007ee0, len:17, flags:0, to:0x3ffda3789d4, tolen:28)
16:33:35return 17

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

== check the received destination option ==

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

OK
16:33:36End