Title | Disabled the IPV6_CHECKSUM socket option to have the kernel not compute and store a checksum |
CommandLine | ./tst_checksum_disable --log=2.html --title=Disabled the IPV6_CHECKSUM socket option to have the kernel not compute and store a checksum |
TestVersion | REL_1_1_18 |
Start | 2023/01/26 16:32:38 |
SystemName | (null) |
KernelVersion | (null) |
16:32:38 | Start |
== create an IPv6 socket == | |
16:32:38 | socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_ICMPV6) |
16:32:38 | return sockfd=4 |
16:32:39 | tst_get_unused_port() get port 42532 |
== bind socket to address == | |
16:32:39 | bind(sockfd:4, my_addr:0x3ffe3e78c04, addrlen:28) |
16:32:39 | return 0 |
== setsockopt IPV6_CHECKSUM disable to IPv6 socket with IPPROTO_ICMPV6 == | |
16:32:39 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x3ffe3e78b68, optlen:4) |
16:32:39 | return error EINVAL |
16:32:39 | close(4) |
== create an IPv6 socket with IPPROTO_UDP == | |
16:32:39 | socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_UDP) |
16:32:39 | return sockfd=4 |
16:32:39 | setsockopt(sockfd:4, level:IPPROTO_ICMP, optname:IPV6_RECVERR, optval:0x3ffe3e78bd0, optlen:40) |
16:32:39 | return 0 |
16:32:40 | tst_get_unused_port() get port 34316 |
== bind socket to address == | |
16:32:40 | bind(sockfd:4, my_addr:0x3ffe3e78c04, addrlen:28) |
16:32:40 | return 0 |
16:32:41 | tst_get_unused_port() get port 39121 |
16:32:41 | udp message sent 86 0c 98 d1 00 08 00 11 |
== send message to itself == | |
16:32:41 | sendto(sockfd:4, buf:0x3ffe3e78bfc, len:8, flags:0, to:0x3ffe3e78c04, tolen:28) |
16:32:41 | return 8 |
== recv message on socket == | |
16:32:41 | recv(sockfd:4, buf:0x3ffe3e78b6c, len:100, flags:64) |
16:32:41 | return 8 |
16:32:41 | udp message received: 86 0c 98 d1 00 08 00 11 |
16:32:41 | close(4) |
OK | |
16:32:41 | End |