Test Information

TitleCan not receive Hop-by-Hop Options when the IPV6_RECVHOPOPTS socket option is disabled
CommandLine./tst_recv_no_hhopt --log=2.html --title=Can not receive Hop-by-Hop Options when the IPV6_RECVHOPOPTS socket option is disabled
TestVersionREL_1_1_18
Start2023/01/17 08:41:31
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:31Start

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

== disable socket to receive hop-by-hop options ==
08:41:31setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVHOPOPTS, optval:0x7ffe9bc6a4cc, optlen:4)
08:41:31return 0

== set Destination options header of socket ==
08:41:31setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffe9bc6a558, optlen:8)
08:41:31return 0
08:41:32tst_get_unused_port() get port 51130

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

== send message to itself ==
08:41:33sendto(sockfd:4, buf:0x407010, len:17, flags:0, to:0x7ffe9bc6a5b0, tolen:28)
08:41:33return 17

== receive message ==
08:41:33recvmsg(sockfd:4, msg:0x7ffe9bc6a560, flags:64)
08:41:33return 17

== check the received hop-by-hop option ==
08:41:33close(4)

OK
08:41:33End