Test Information

TitleSet the Hop-by-Hop Options using setsockopt()
CommandLine./tst_hop_by_hop_set --log=6.html --title=Set the Hop-by-Hop Options using setsockopt()
TestVersionREL_1_1_18
Start2023/01/26 16:33:26
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:33:26Start

== create an IPv6 socket ==
16:33:27socket(domain:AF_INET6, type:SOCK_STREAM, protocol:0)
16:33:27return sockfd=4

== set Hop-by-Hop options header with NULL data pointer ==
16:33:27setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:(nil), optlen:8)
16:33:27return error EINVAL

== set Hop-by-Hop options header with larger length ==
16:33:27setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x3ffe8df8e68, optlen:65535)
16:33:27return error EINVAL

== set Hop-by-Hop options header with bad option ==
16:33:27setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x3ffe8df8e68, optlen:8)
16:33:27return error EINVAL

== set Hop-by-Hop options header with valid option ==
16:33:27setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x3ffe8df8e68, optlen:8)
16:33:27return 0
16:33:27close(4)

OK
16:33:27End