Test Information

TitleGet Destination Options header which the application specifies
CommandLine./tst_dsthop_get --log=5.html --title=Get Destination Options header which the application specifies
TestVersionREL_1_1_18
Start2023/01/17 08:41:47
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:47Start

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

== get Destination options header ==
08:41:47getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7fff58508f88, optlen:0x7fff58508f84)
08:41:47return length 0

== check length of Destination options header ==

== set Destination options header ==
08:41:47setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7fff58508f90, optlen:8)
08:41:47return 0

== get Destination options header ==
08:41:48getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7fff58508f88, optlen:0x7fff58508f84)
08:41:48return length 8

== check length of Destination options header ==

== get Destination options header with NULL data pointer ==
08:41:48getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:(nil), optlen:0x7fff58508f84)
08:41:48return error EFAULT

== get Destination options header with NULL length pointer ==
08:41:48getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7fff58508f88, optlen:(nil))
08:41:48return error EFAULT

== get Destination options header with short length ==
08:41:48getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7fff58508f88, optlen:0x7fff58508f84)
08:41:48return length 4

== check length of Destination options header ==

OK
08:41:48End