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

Test Sequence Execution Log

08:41:38Start

== create an IPv6 socket ==
08:41:38socket(domain:AF_INET6, type:SOCK_STREAM, protocol:0)
08:41:38return sockfd=4

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

== set Hop-by-Hop options header with larger length ==
08:41:38setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffe7eac2fc0, optlen:65535)
08:41:38return error EINVAL

== set Hop-by-Hop options header with bad option ==
08:41:38setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffe7eac2fc0, optlen:8)
08:41:38return error EINVAL

== set Hop-by-Hop options header with valid option ==
08:41:38setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffe7eac2fc0, optlen:8)
08:41:38return 0
08:41:38close(4)

OK
08:41:38End