Test Information

TitleReceive Destination Options when the IPV6_RECVDSTOPTS socket option is enabled
CommandLine./tst_recv_dstopt --log=1.html --title=Receive Destination Options when the IPV6_RECVDSTOPTS socket option is enabled
TestVersionREL_1_1_18
Start2023/01/17 08:41:40
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:40Start

== create an IPv6/UDP socket ==
08:41:40socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
08:41:40return sockfd=4

== enable socket to receive destination options ==
08:41:40setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_RECVDSTOPTS, optval:0x7ffc302c290c, optlen:4)
08:41:40return 0

== set Destination options header of socket ==
08:41:40setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_DSTOPTS, optval:0x7ffc302c2998, optlen:8)
08:41:40return 0
08:41:41tst_get_unused_port() get port 54743

== bind socket to address ==
08:41:41bind(sockfd:4, my_addr:0x7ffc302c29f0, addrlen:28)
08:41:41return 0

== send message to itself ==
08:41:41sendto(sockfd:4, buf:0x407010, len:17, flags:0, to:0x7ffc302c29f0, tolen:28)
08:41:41return 17

== receive message ==
08:41:41recvmsg(sockfd:4, msg:0x7ffc302c29a0, flags:64)
08:41:41return 17

== check the received destination option ==

the received destination option length: 24
08:41:41close(4)

OK
08:41:41End