Fix build for IPSEC && !INET6

PR:		kern/66125
Submitted by:	Cyrille Lefevre
This commit is contained in:
Bruce M Simpson 2004-06-16 09:35:07 +00:00
parent 49b19bfc47
commit d420fcda27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130584
2 changed files with 12 additions and 6 deletions

View File

@ -641,17 +641,20 @@ tcp_input(m, off0)
}
#if defined(IPSEC) || defined(FAST_IPSEC)
#ifdef INET6
if (isipv6) {
if (inp != NULL && ipsec6_in_reject(m, inp)) {
#ifdef IPSEC
ipsec6stat.in_polvio++;
#endif /*IPSEC*/
#endif
goto drop;
}
} else if (inp != NULL && ipsec4_in_reject(m, inp)) {
} else
#endif /* INET6 */
if (inp != NULL && ipsec4_in_reject(m, inp)) {
#ifdef IPSEC
ipsecstat.in_polvio++;
#endif /*IPSEC*/
#endif
goto drop;
}
#endif /*IPSEC || FAST_IPSEC*/

View File

@ -641,17 +641,20 @@ tcp_input(m, off0)
}
#if defined(IPSEC) || defined(FAST_IPSEC)
#ifdef INET6
if (isipv6) {
if (inp != NULL && ipsec6_in_reject(m, inp)) {
#ifdef IPSEC
ipsec6stat.in_polvio++;
#endif /*IPSEC*/
#endif
goto drop;
}
} else if (inp != NULL && ipsec4_in_reject(m, inp)) {
} else
#endif /* INET6 */
if (inp != NULL && ipsec4_in_reject(m, inp)) {
#ifdef IPSEC
ipsecstat.in_polvio++;
#endif /*IPSEC*/
#endif
goto drop;
}
#endif /*IPSEC || FAST_IPSEC*/