Date: Sat, 10 Feb 2018 10:13:18 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329101 - head/sys/netinet Message-ID: <201802101013.w1AADINx091211@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802101013.w1AADINx091211>