diff options
author | bms <bms@FreeBSD.org> | 2004-06-16 09:35:07 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-06-16 09:35:07 +0000 |
commit | cafb94bcea1cdf048e81b7eb2d24808e1a8c5280 (patch) | |
tree | 5ad07b41e6ef17cf5d83a2cd887be374fa6c5614 /sys/netinet | |
parent | ff08157f93e9b1cf65e9b36fe0b60c313e93b847 (diff) | |
download | FreeBSD-src-cafb94bcea1cdf048e81b7eb2d24808e1a8c5280.zip FreeBSD-src-cafb94bcea1cdf048e81b7eb2d24808e1a8c5280.tar.gz |
Fix build for IPSEC && !INET6
PR: kern/66125
Submitted by: Cyrille Lefevre
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_input.c | 9 | ||||
-rw-r--r-- | sys/netinet/tcp_reass.c | 9 |
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*/ |