Test Information

TitleSet Destination Options using setsockopt()
CommandLine./tst_dsthop_set --log=6.html --title=Set Destination Options using setsockopt()
TestVersionREL_1_1_18
Start2023/01/17 08:41:48
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:48Start

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

== set Destination options header with NULL data pointer ==
08:41:48setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:(nil), optlen:8)
08:41:48return error EINVAL

== set Destination options header with larger length ==
08:41:48setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7ffdc4691b20, optlen:65535)
08:41:48return error EINVAL

== set Destination options header with bad option ==
08:41:49setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7ffdc4691b20, optlen:8)
08:41:49return error EINVAL

== set Destination options header with valid option ==
08:41:49setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7ffdc4691b20, optlen:8)
08:41:49return 0
08:41:49close(4)

OK
08:41:49End