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/17 08:40:48 |
SystemName | (null) |
KernelVersion | (null) |
08:40:48 | Start |
== create an IPv6 socket == | |
08:40:49 | socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_ICMPV6) |
08:40:49 | return sockfd=4 |
08:40:50 | tst_get_unused_port() get port 57377 |
== bind socket to address == | |
08:40:50 | bind(sockfd:4, my_addr:0x7ffdeca35aa0, addrlen:28) |
08:40:50 | return 0 |
== setsockopt IPV6_CHECKSUM disable to IPv6 socket with IPPROTO_ICMPV6 == | |
08:40:50 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x7ffdeca359fc, optlen:4) |
08:40:50 | return error EINVAL |
08:40:50 | close(4) |
== create an IPv6 socket with IPPROTO_UDP == | |
08:40:50 | socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_UDP) |
08:40:50 | return sockfd=4 |
08:40:50 | setsockopt(sockfd:4, level:IPPROTO_ICMP, optname:IPV6_RECVERR, optval:0x7ffdeca35a70, optlen:40) |
08:40:50 | return 0 |
08:40:51 | tst_get_unused_port() get port 34091 |
== bind socket to address == | |
08:40:51 | bind(sockfd:4, my_addr:0x7ffdeca35aa0, addrlen:28) |
08:40:51 | return 0 |
08:40:52 | tst_get_unused_port() get port 51521 |
08:40:52 | udp message sent 85 2b c9 41 00 08 11 00 |
== send message to itself == | |
08:40:52 | sendto(sockfd:4, buf:0x7ffdeca35a98, len:8, flags:0, to:0x7ffdeca35aa0, tolen:28) |
08:40:52 | return 8 |
== recv message on socket == | |
08:40:52 | recv(sockfd:4, buf:0x7ffdeca35a00, len:100, flags:64) |
08:40:52 | return 8 |
08:40:52 | udp message received: 85 2b c9 41 00 08 11 00 |
08:40:52 | close(4) |
OK | |
08:40:52 | End |