summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2006-09-23 16:26:31 +0000
committerbms <bms@FreeBSD.org>2006-09-23 16:26:31 +0000
commitf6e5dafda977f33fc23ea4eaf46e8018231afeb3 (patch)
tree813acd9650d8ac45d6bb2e41d84ae1efe18dc34d /sys/netinet/tcp_input.c
parent2f0a02201d4138870fc8e30f35809b7c9e2c86ea (diff)
downloadFreeBSD-src-f6e5dafda977f33fc23ea4eaf46e8018231afeb3.zip
FreeBSD-src-f6e5dafda977f33fc23ea4eaf46e8018231afeb3.tar.gz
Always set the IP version in the TCP input path, to preserve
the header field for possible later IPSEC SPD lookup, even when the kernel is built without 'options INET6'. PR: kern/57760 MFC after: 1 week Submitted by: Joachim Schueth
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 2d0e8ca..e01a6f0 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -548,10 +548,8 @@ tcp_input(m, off0)
tcpstat.tcps_rcvbadsum++;
goto drop;
}
-#ifdef INET6
/* Re-initialization for later version check */
ip->ip_v = IPVERSION;
-#endif
}
/*
OpenPOWER on IntegriCloud