Test Information

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

Test Sequence Execution Log

01:01:32Start

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

== enable socket to receive hop-by-hop options ==
01:01:32setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVHOPOPTS, optval:0x3ffc66f8fb0, optlen:4)
01:01:32return 0

== set hop-by-hop options header of socket ==
01:01:32setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x3ffc66f9030, optlen:8)
01:01:32return 0
01:01:33tst_get_unused_port() get port 58928

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

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

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

== check the received hop-by-hop option ==

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

OK
01:01:34End