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

Test Sequence Execution Log

16:33:22Start

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

== enable socket to receive hop by hop options ==
16:33:22setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVHOPOPTS, optval:0x3fffd378410, optlen:4)
16:33:22return 0
16:33:23tst_get_unused_port() get port 37999

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

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

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

== check the received hop by hop option ==

the received hop by hop option length: 24
16:33:23close(4)

OK
16:33:23End