01:01:59 | Start |
| == create an IPv6 socket == |
01:01:59 | socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
|
01:01:59 | return sockfd=4
|
| == get getsockopt in IPV6_2292HOPOPTS== |
01:01:59 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:0x3ffe69f8c28)
|
01:01:59 | return length 0
|
| default IPV6_2292HOPOPTS is 0 |
| == set socket use 2292HOPOPT == |
01:02:00 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:4)
|
01:02:00 | return 0
|
| == get getsockopt in IPV6_2292HOPOPTS== |
01:02:00 | getsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:0x3ffe69f8c28)
|
01:02:00 | return length 4
|
01:02:01 | tst_get_unused_port() get port 35347
|
| == bind socket to address == |
01:02:01 | bind(sockfd:4, my_addr:0x3ffe69f8d00, addrlen:28)
|
01:02:01 | return 0
|
| == send message == |
01:02:01 | sendmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:0)
|
01:02:01 | return 100
|
| == receive message == |
01:02:01 | recvmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:64)
|
01:02:01 | return 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:01 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_2292HOPOPTS, optval:0x3ffe69f8cfc, optlen:4)
|
01:02:01 | return 0
|
| == send message == |
01:02:02 | sendmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:0)
|
01:02:02 | return 100
|
| == receive message == |
01:02:02 | recvmsg(sockfd:4, msg:0x3ffe69f8cb0, flags:64)
|
01:02:02 | return 100
|
| == after off 2292HOPOPT , receive message can not read hop by hop option == |
01:02:02 | close(4)
|
| OK |
01:02:02 | End |