summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c9
-rw-r--r--sys/netinet/tcp_reass.c9
2 files changed, 12 insertions, 6 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 03ed420..9b6636b 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -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*/
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 03ed420..9b6636b 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -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*/
OpenPOWER on IntegriCloud