Test Information

TitleCheck HOPOPTS as RFC2292 spec
CommandLine./tst_ipv6_2292HOPOPTS --log=3.html --title=Check HOPOPTS as RFC2292 spec
TestVersionREL_1_1_18
Start2023/02/03 01:01:59
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:59Start

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

== get getsockopt in IPV6_2292HOPOPTS==
01:01:59getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:0x3ffe69f8c28)
01:01:59return length 0

default IPV6_2292HOPOPTS is 0

== set socket use 2292HOPOPT ==
01:02:00setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:4)
01:02:00return 0

== get getsockopt in IPV6_2292HOPOPTS==
01:02:00getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:0x3ffe69f8c28)
01:02:00return length 4
01:02:01tst_get_unused_port() get port 35347

== bind socket to address ==
01:02:01bind(sockfd:4, my_addr:0x3ffe69f8d00, addrlen:28)
01:02:01return 0

== send message ==
01:02:01sendmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:0)
01:02:01return 100

== receive message ==
01:02:01recvmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:64)
01:02:01return 100

== check the received 2292HOPOPTS option ==

== if not found, report error==

== check whether the length of received hop by hop option is correct==

== check whether the value of received hop by hop option is correct==

== set socket use 2292HOPOPT ==
01:02:01setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:4)
01:02:01return 0

== send message ==
01:02:02sendmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:0)
01:02:02return 100

== receive message ==
01:02:02recvmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:64)
01:02:02return 100

== after off 2292HOPOPT , receive message can not read hop by hop option ==
01:02:02close(4)

OK
01:02:02End