Test Information

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

Test Sequence Execution Log

08:41:37Start

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

== get Hop-by-Hop options header ==
08:41:37getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffede032800, optlen:0x7ffede0327f4)
08:41:37return length 0

== check length of Hop-by-Hop options header ==

== set Hop-by-Hop options header ==
08:41:37setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffede032800, optlen:8)
08:41:37return 0

== get Hop-by-Hop options header ==
08:41:37getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffede0327f8, optlen:0x7ffede0327f4)
08:41:37return length 8

== check length of Hop-by-Hop options header ==

== get Hop-by-Hop options header with NULL data pointer ==
08:41:37getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:(nil), optlen:0x7ffede0327f4)
08:41:37return error EFAULT

== get Hop-by-Hop options header with NULL length pointer ==
08:41:37getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffede0327f8, optlen:(nil))
08:41:37return error EFAULT

== get Hop-by-Hop options header with short length ==
08:41:38getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_HOPOPTS, optval:0x7ffede0327f8, optlen:0x7ffede0327f4)
08:41:38return length 4

== check length of Hop-by-Hop options header ==

OK
08:41:38End