Test Information

TitleCheck DSTOPTS as RFC2292 spec
CommandLine./tst_ipv6_2292DSTOPTS --log=2.html --title=Check DSTOPTS as RFC2292 spec
TestVersionREL_1_1_18
Start2023/01/17 08:42:00
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:42:00Start

== create an IPv6 socket ==
08:42:00socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
08:42:00return sockfd=4

== get getsockopt in IPV6_2292DSTOPTS==
08:42:00getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:0x7ffd30f66c0c)
08:42:00return length 4

default IPV6_2292DSTOPTS is 0

== set socket use 2292DSTOPTS ==
08:42:00setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:4)
08:42:00return 0

== get getsockopt in IPV6_2292DSTOPTS==
08:42:01getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:0x7ffd30f66c0c)
08:42:01return length 4
08:42:02tst_get_unused_port() get port 60895

== bind socket to address ==
08:42:02bind(sockfd:4, my_addr:0x7ffd30f66d00, addrlen:28)
08:42:02return 0

== send message ==
08:42:02sendmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:0)
08:42:02return 100

== receive message ==
08:42:02recvmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:64)
08:42:02return 100

== check the received 2292DSTOPTS option ==

== if not found, report error==

== check whether the length of received 2292DSTOPTS is correct==

== check whether the value of received DSTOPT_SAPCE is correct==

== set socket use 2292DSTOPTS ==
08:42:02setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:4)
08:42:02return 0

== send message ==
08:42:02sendmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:0)
08:42:02return 100

== receive message ==
08:42:03recvmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:64)
08:42:03return 100

== after off 2292HOPOPT , receive message can not read 2292DSTOPTS ==

OK
08:42:03End