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

Test Sequence Execution Log

16:33:20Start

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

== disable socket to receive hop-by-hop options ==
16:33:20setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVHOPOPTS, optval:0x3ffd9778b58, optlen:4)
16:33:20return 0

== set Destination options header of socket ==
16:33:20setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x3ffd9778bd8, optlen:8)
16:33:20return 0
16:33:21tst_get_unused_port() get port 54506

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

== send message to itself ==
16:33:21sendto(sockfd:4, buf:0x1007dc0, len:17, flags:0, to:0x3ffd9778c2c, tolen:28)
16:33:21return 17

== receive message ==
16:33:21recvmsg(sockfd:4, msg:0x3ffd9778be0, flags:64)
16:33:21return 17

== check the received hop-by-hop option ==
16:33:22close(4)

OK
16:33:22End