created | 2023-06-04T10:06:06Z |
---|---|
begin | 2023-05-30T08:30:01Z |
end | 2023-05-30T19:32:57Z |
path | src/sys |
commits | 1 |
date | 2023-05-30T19:32:57Z | |||
---|---|---|---|---|
author | bluhm | |||
files | src/sys/netinet/tcp_input.c | log | diff | annotate |
message |
Use generic checksum calculation for TCP SYN+ACK packets. Our syn cache did checksum calculation by hand, instead of the established mechanism in ip output. The software-checksummed counter increased once per incoming TCP connection. Just set the flag M_TCP_CSUM_OUT in syn_cache_respond() and let in_proto_cksum_out() do the work later. Then hardware checksumming is used where available. Also remove redundant code. The unhandled af case is handled in the first switch statement of the function. tested by Hrvoje Popovski; OK mvs@ |