summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_forward.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-09-23 18:50:59 +0000
committerume <ume@FreeBSD.org>2000-09-23 18:50:59 +0000
commitee306bc4d0b8bce98af864654188034fcba77cdf (patch)
tree1fc171f9e4299cbdcb0dc5a150faa76c9064dd83 /sys/netinet6/ip6_forward.c
parenta307605d915dadf63776d8a7dc2b548641346801 (diff)
downloadFreeBSD-src-ee306bc4d0b8bce98af864654188034fcba77cdf.zip
FreeBSD-src-ee306bc4d0b8bce98af864654188034fcba77cdf.tar.gz
Make ip6fw as loadable module.
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
-rw-r--r--sys/netinet6/ip6_forward.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
index caa38ef..2664ccb 100644
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -62,9 +62,7 @@
#include <netkey/key.h>
#endif /* IPSEC */
-#ifdef IPV6FIREWALL
#include <netinet6/ip6_fw.h>
-#endif
#include <net/net_osdep.h>
@@ -415,11 +413,10 @@ ip6_forward(m, srcrt)
(rt->rt_flags & (RTF_DYNAMIC|RTF_MODIFIED)) == 0)
type = ND_REDIRECT;
-#ifdef IPV6FIREWALL
/*
* Check with the firewall...
*/
- if (ip6_fw_chk_ptr) {
+ if (ip6_fw_enable && ip6_fw_chk_ptr) {
u_short port = 0;
/* If ipfw says divert, we have to just drop packet */
if ((*ip6_fw_chk_ptr)(&ip6, rt->rt_ifp, &port, &m)) {
@@ -429,7 +426,6 @@ ip6_forward(m, srcrt)
if (!m)
goto freecopy;
}
-#endif
/*
* Fake scoped addresses. Note that even link-local source or
OpenPOWER on IntegriCloud