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/26 16:33:36
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:33:36Start

== create an IPv6 socket ==
16:33:36socket(domain:AF_INET6, type:SOCK_STREAM, protocol:0)
16:33:36return sockfd=4

== get Destination options header ==
16:33:36getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffe54792b0, optlen:0x3ffe54792ac)
16:33:36return length 0

== check length of Destination options header ==

== set Destination options header ==
16:33:36setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffe54792b8, optlen:8)
16:33:36return 0

== get Destination options header ==
16:33:36getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffe54792b0, optlen:0x3ffe54792ac)
16:33:36return length 8

== check length of Destination options header ==

== get Destination options header with NULL data pointer ==
16:33:36getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:(nil), optlen:0x3ffe54792ac)
16:33:36return error EFAULT

== get Destination options header with NULL length pointer ==
16:33:36getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffe54792b0, optlen:(nil))
16:33:36return error EFAULT

== get Destination options header with short length ==
16:33:37getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x3ffe54792b0, optlen:0x3ffe54792ac)
16:33:37return length 4

== check length of Destination options header ==

OK
16:33:37End