svn commit: r329101 - head/sys/netinet
Andrey V. Elsukov
ae at FreeBSD.org
Sat Feb 10 10:13:18 UTC 2018
Author: ae
Date: Sat Feb 10 10:13:17 2018
New Revision: 329101
URL: https://svnweb.freebsd.org/changeset/base/329101
Log:
Reinitialize IP header length after checksum calculation. It is used
later by TCP-MD5 code.
This fixes the problem with broken TCP-MD5 over IPv4 when NIC has
disabled TCP checksum offloading.
PR: 223835
MFC after: 1 week
Modified:
head/sys/netinet/tcp_input.c
Modified: head/sys/netinet/tcp_input.c
==============================================================================
--- head/sys/netinet/tcp_input.c Sat Feb 10 04:56:07 2018 (r329100)
+++ head/sys/netinet/tcp_input.c Sat Feb 10 10:13:17 2018 (r329101)
@@ -707,6 +707,7 @@ tcp_input(struct mbuf **mp, int *offp, int proto)
ip->ip_tos = iptos;
/* Re-initialization for later version check */
ip->ip_v = IPVERSION;
+ ip->ip_hl = off0 >> 2;
}
if (th->th_sum) {
More information about the svn-src-head
mailing list