Fix build for IPSEC && !INET6
PR: kern/66125 Submitted by: Cyrille Lefevre
This commit is contained in:
parent
49b19bfc47
commit
d420fcda27
@ -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*/
|
||||
|
@ -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*/
|
||||
|
Loading…
Reference in New Issue
Block a user