mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
6621d681e5
commit
a01634b003
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue