summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2013-10-19 10:38:54 +0000
committerhenning <henning@openbsd.org>2013-10-19 10:38:54 +0000
commitb90d0bccdbd6f2e566fffeb1450490a75b9d8dd0 (patch)
tree48f9c7cf958edcb289fc9129638513307c6c4e1f /lib/libc
parentsync (diff)
downloadwireguard-openbsd-b90d0bccdbd6f2e566fffeb1450490a75b9d8dd0.tar.xz
wireguard-openbsd-b90d0bccdbd6f2e566fffeb1450490a75b9d8dd0.zip
make in_proto_cksum_out not rely on the pseudo header checksum to be
already there, just compute it - it's dirt cheap. since that happens very late in ip_output, the rest of the stack doesn't have to care about checksums at all any more, if something needs to be checksummed, just set the flag on the pkthdr mbuf to indicate so. stop pre-computing the pseudo header checksum and incrementally updating it in the tcp and udp stacks. ok lteo florian
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions