Page MenuHomeFreeBSD

D29947.diff
No OneTemporary

D29947.diff

diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -244,6 +244,8 @@
static int pim_encapcheck(const struct mbuf *, int, int, void *);
static int pim_input(struct mbuf *, int, int, void *);
+extern int in_mcast_loop;
+
static const struct encap_config ipv4_encap_cfg = {
.proto = IPPROTO_PIM,
.min_length = sizeof(struct ip) + PIM_MINLEN,
@@ -1685,7 +1687,7 @@
imo.imo_multicast_ifp = vifp->v_ifp;
imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1;
- imo.imo_multicast_loop = 1;
+ imo.imo_multicast_loop = !!in_mcast_loop;
imo.imo_multicast_vif = -1;
STAILQ_INIT(&imo.imo_head);

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 4:42 AM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15833648
Default Alt Text
D29947.diff (685 B)

Event Timeline