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
This commit is contained in:
ae 2018-02-10 10:13:17 +00:00 committed by Franco Fichtner
parent 6621d681e5
commit a01634b003

View file

@ -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) {