]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Save ip_ttl value and restore it after checksum calculation.
authorae <ae@FreeBSD.org>
Tue, 13 Aug 2019 12:47:53 +0000 (12:47 +0000)
committerae <ae@FreeBSD.org>
Tue, 13 Aug 2019 12:47:53 +0000 (12:47 +0000)
commitcdfc67a5b08e7c3262c4020b7addb9ab5923169e
treedfd2ecd3fdba4d094d78956096f675ca0d9364b4
parentce02104e387576a63e445d8f7c135b871f098f53
Save ip_ttl value and restore it after checksum calculation.

Since ipvoly is used for checksum calculation, part of original IP
header is zeroed. This part includes ip_ttl field, that can be used
later in IP_MINTTL socket option handling.

PR: 239799
MFC after: 1 week
sys/netinet/tcp_input.c