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/02/03 01:01:35
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:35Start

== create an IPv6 socket ==
01:01:35socket(domain:AF_INET6, type:SOCK_STREAM, protocol:0)
01:01:35return sockfd=4

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

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

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

== set Hop-by-Hop options header with valid option ==
01:01:35setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x3ffd30f88a8, optlen:8)
01:01:35return 0
01:01:35close(4)

OK
01:01:35End