4 ms·
This is the commit for those curious: https://github.com/openbsd/src/commit/c778c0d73570b51def4f061069af442165eb791e https://github.com/openbsd/src/commit/c778c
by petee 3y ago
This is the commit for those curious: https://github.com/openbsd/src/commit/c778c0d73570b51def4f061069af442165eb791e https://github.com/openbsd/src/commit/c778c0d73570b51def4f06...
> Packets sent over loopback got their checksums calculated twice.
In the output path they were filled in and during TCP/IP input all
checksums were calculated again to be compared with the previous
result.
Avoid this by claiming that lo(4) supports hardware checksum
offloading. For each packet convert the flag that the checksum
should be calculated to the flag that it has been checked successfully.
Keep the flag that it should be calculated for the case that it may
be bridged or forwarded later.
A drawback is that "tcpdump -ni lo0 -v" reports invalid checksum.
But that is the same with physical interfaces and hardware offloading.
OK dlg@