Test Information

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

Test Sequence Execution Log

01:01:30Start

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

== enable socket to receive hop by hop options ==
01:01:30setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVHOPOPTS, optval:0x3ffd2078bf0, optlen:4)
01:01:30return 0
01:01:31tst_get_unused_port() get port 46506

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

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

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

== check the received hop by hop option ==

the received hop by hop option length: 24
01:01:32close(4)

OK
01:01:32End