Test Information

Titleset router alert option use IPV6_ROUTER_ALERT
CommandLine./tst_ipv6_router_alert --log=9.html --title=set router alert option use IPV6_ROUTER_ALERT
TestVersionREL_1_1_18
Start2023/01/26 16:34:07
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:34:07Start

== create an IPv6 raw socket ==
16:34:07socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_RAW)
16:34:07return sockfd=4

== set the value IPV6_ROUTER_ALERT option to 0 ==
16:34:08setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_ROUTER_ALERT, optval:0x3fff61f9190, optlen:4)
16:34:08return 0

== set the value IPV6_ROUTER_ALERT option to 1 ==
16:34:08setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_ROUTER_ALERT, optval:0x3fff61f9190, optlen:4)
16:34:08return error EADDRINUSE

== set the value IPV6_ROUTER_ALERT option to -1 ==
16:34:08setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_ROUTER_ALERT, optval:0x3fff61f9190, optlen:4)
16:34:08return 0

== set the value IPV6_ROUTER_ALERT option to 1 ==
16:34:08setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_ROUTER_ALERT, optval:0x3fff61f9190, optlen:4)
16:34:08return 0
16:34:08close(4)

OK
16:34:08End