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

Test Sequence Execution Log

08:41:33Start

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

== enable socket to receive hop by hop options ==
08:41:33setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVHOPOPTS, optval:0x7ffe5ca2bf1c, optlen:4)
08:41:33return 0
08:41:34tst_get_unused_port() get port 51924

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

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

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

== check the received hop by hop option ==

the received hop by hop option length: 24
08:41:35close(4)

OK
08:41:35End