diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2000-09-23 18:50:59 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2000-09-23 18:50:59 +0000 |
| commit | 20cb9f9efe4c084e62f89e006e4d7bb42eace34e (patch) | |
| tree | a6df1aee70fb5e463ac43059fc8bbe8fee737c80 /sys/netinet6/ip6_forward.c | |
| parent | 1204fd85a4ea199414100949bbd5cbc0b96232fa (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
| -rw-r--r-- | sys/netinet6/ip6_forward.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index caa38eff1ef5..2664ccbf746d 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 |
