08:42:00 | Start |
| == create an IPv6 socket == |
08:42:00 | socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
|
08:42:00 | return sockfd=4
|
| == get getsockopt in IPV6_2292DSTOPTS== |
08:42:00 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:0x7ffd30f66c0c)
|
08:42:00 | return length 4
|
| default IPV6_2292DSTOPTS is 0 |
| == set socket use 2292DSTOPTS == |
08:42:00 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:4)
|
08:42:00 | return 0
|
| == get getsockopt in IPV6_2292DSTOPTS== |
08:42:01 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:0x7ffd30f66c0c)
|
08:42:01 | return length 4
|
08:42:02 | tst_get_unused_port() get port 60895
|
| == bind socket to address == |
08:42:02 | bind(sockfd:4, my_addr:0x7ffd30f66d00, addrlen:28)
|
08:42:02 | return 0
|
| == send message == |
08:42:02 | sendmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:0)
|
08:42:02 | return 100
|
| == receive message == |
08:42:02 | recvmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:64)
|
08:42:02 | return 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:02 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292DSTOPTS, optval:0x7ffd30f66cfc, optlen:4)
|
08:42:02 | return 0
|
| == send message == |
08:42:02 | sendmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:0)
|
08:42:02 | return 100
|
| == receive message == |
08:42:03 | recvmsg(sockfd:4, msg:0x7ffd30f66ca0, flags:64)
|
08:42:03 | return 100
|
| == after off 2292HOPOPT , receive message can not read 2292DSTOPTS == |
| OK |
08:42:03 | End |