summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_input.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-02-24 11:38:47 +0000
committerbms <bms@FreeBSD.org>2007-02-24 11:38:47 +0000
commit3e83ac665326a6a015b2179fc28157d9fb7433e2 (patch)
tree6230b66dd7bf83f11724dee78961a7c0020c9d31 /sys/netinet6/ip6_input.c
parentc553ec0508d385c07a87aed036312de1e3a64b03 (diff)
downloadFreeBSD-src-3e83ac665326a6a015b2179fc28157d9fb7433e2.zip
FreeBSD-src-3e83ac665326a6a015b2179fc28157d9fb7433e2.tar.gz
Make IPv6 multicast forwarding dynamically loadable from a GENERIC kernel.
It is built in the same module as IPv4 multicast forwarding, i.e. ip_mroute.ko, if and only if IPv6 support is enabled for loadable modules. Export IPv6 forwarding structs to userland netstat(1) via sysctl(9).
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r--sys/netinet6/ip6_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 981c43a..099bdc7 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -696,7 +696,8 @@ passin:
* ip6_mforward() returns a non-zero value, the packet
* must be discarded, else it may be accepted below.
*/
- if (ip6_mrouter && ip6_mforward(ip6, m->m_pkthdr.rcvif, m)) {
+ if (ip6_mrouter && ip6_mforward &&
+ ip6_mforward(ip6, m->m_pkthdr.rcvif, m)) {
ip6stat.ip6s_cantforward++;
m_freem(m);
return;
OpenPOWER on IntegriCloud