mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix build for IPSEC && !INET6
PR: kern/66125 Submitted by: Cyrille Lefevre
This commit is contained in:
parent
49b19bfc47
commit
d420fcda27
2 changed files with 12 additions and 6 deletions
|
|
@ -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*/
|
||||
|
|
|
|||
|
|
@ -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*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue