diff options
author | ume <ume@FreeBSD.org> | 2000-09-23 18:50:59 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2000-09-23 18:50:59 +0000 |
commit | ee306bc4d0b8bce98af864654188034fcba77cdf (patch) | |
tree | 1fc171f9e4299cbdcb0dc5a150faa76c9064dd83 /sys/netinet6/ip6_input.c | |
parent | a307605d915dadf63776d8a7dc2b548641346801 (diff) | |
download | FreeBSD-src-ee306bc4d0b8bce98af864654188034fcba77cdf.zip FreeBSD-src-ee306bc4d0b8bce98af864654188034fcba77cdf.tar.gz |
Make ip6fw as loadable module.
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 6bcaa05..46f0b9c 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -109,9 +109,7 @@ #include <netinet6/nd6.h> #include <netinet6/in6_prefix.h> -#ifdef IPV6FIREWALL #include <netinet6/ip6_fw.h> -#endif #include <netinet6/ip6protosw.h> @@ -134,11 +132,10 @@ int ip6_sourcecheck; /* XXX */ int ip6_sourcecheck_interval; /* XXX */ const int int6intrq_present = 1; -#ifdef IPV6FIREWALL /* firewall hooks */ ip6_fw_chk_t *ip6_fw_chk_ptr; ip6_fw_ctl_t *ip6_fw_ctl_ptr; -#endif +int ip6_fw_enable = 1; struct ip6stat ip6stat; @@ -174,9 +171,6 @@ ip6_init() register_netisr(NETISR_IPV6, ip6intr); nd6_init(); frag6_init(); -#ifdef IPV6FIREWALL - ip6_fw_init(); -#endif /* * in many cases, random() here does NOT return random number * as initialization during bootstrap time occur in fixed order. @@ -325,11 +319,10 @@ ip6_input(m) ip6stat.ip6s_nxthist[ip6->ip6_nxt]++; -#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 */ /* use port as a dummy argument */ @@ -340,7 +333,6 @@ ip6_input(m) if (!m) return; } -#endif /* * Scope check |