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
This commit is contained in:
Bruce M Simpson 2006-09-23 16:26:31 +00:00
parent f4882b24fd
commit f1edc3bde5
2 changed files with 0 additions and 4 deletions

View File

@ -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
}
/*

View File

@ -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
}
/*