Fix build for IPSEC && !INET6

PR:		kern/66125
Submitted by:	Cyrille Lefevre
This commit is contained in:
bms 2004-06-16 09:35:07 +00:00
parent ff08157f93
commit cafb94bcea
2 changed files with 12 additions and 6 deletions

View File

@ -641,17 +641,20 @@ findpcb:
}
#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 @@ findpcb:
}
#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*/