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

Test Sequence Execution Log

01:01:45Start

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

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

== set Destination options header with larger length ==
01:01:45setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffc6578468, optlen:65535)
01:01:45return error EINVAL

== set Destination options header with bad option ==
01:01:45setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffc6578468, optlen:8)
01:01:45return error EINVAL

== set Destination options header with valid option ==
01:01:46setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffc6578468, optlen:8)
01:01:46return 0
01:01:46close(4)

OK
01:01:46End