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/02/03 01:00:46 |
SystemName | (null) |
KernelVersion | (null) |
01:00:46 | Start |
== create an IPv6 socket == | |
01:00:46 | socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_ICMPV6) |
01:00:46 | return sockfd=4 |
01:00:47 | tst_get_unused_port() get port 46986 |
== bind socket to address == | |
01:00:48 | bind(sockfd:4, my_addr:0x3ffde4f92e4, addrlen:28) |
01:00:48 | return 0 |
== setsockopt IPV6_CHECKSUM disable to IPv6 socket with IPPROTO_ICMPV6 == | |
01:00:48 | setsockopt(sockfd:4, level:IPPROTO_IPV6, optname:IPV6_CHECKSUM, optval:0x3ffde4f9248, optlen:4) |
01:00:48 | return error EINVAL |
01:00:48 | close(4) |
== create an IPv6 socket with IPPROTO_UDP == | |
01:00:48 | socket(domain:AF_INET6, type:SOCK_RAW, protocol:IPPROTO_UDP) |
01:00:48 | return sockfd=4 |
01:00:48 | setsockopt(sockfd:4, level:IPPROTO_ICMP, optname:IPV6_RECVERR, optval:0x3ffde4f92b0, optlen:40) |
01:00:48 | return 0 |
01:00:49 | tst_get_unused_port() get port 47798 |
== bind socket to address == | |
01:00:49 | bind(sockfd:4, my_addr:0x3ffde4f92e4, addrlen:28) |
01:00:49 | return 0 |
01:00:50 | tst_get_unused_port() get port 36385 |
01:00:50 | udp message sent ba b6 8e 21 00 08 00 11 |
== send message to itself == | |
01:00:50 | sendto(sockfd:4, buf:0x3ffde4f92dc, len:8, flags:0, to:0x3ffde4f92e4, tolen:28) |
01:00:50 | return 8 |
== recv message on socket == | |
01:00:50 | recv(sockfd:4, buf:0x3ffde4f924c, len:100, flags:64) |
01:00:50 | return 8 |
01:00:50 | udp message received: ba b6 8e 21 00 08 00 11 |
01:00:50 | close(4) |
OK | |
01:00:50 | End |