Fix build for IPSEC && !INET6
PR: kern/66125 Submitted by: Cyrille Lefevre
This commit is contained in:
parent
49b19bfc47
commit
d420fcda27
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130584
@ -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