aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_mroute.c
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2015-08-08 15:58:35 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2015-08-08 15:58:35 +0000
commit331dff0737ad1c1f4860328b79f1b77682b5fcb8 (patch)
treef62740b5af9e3598f63fe19316899ed1aca803a5 /sys/netinet6/ip6_mroute.c
parentb8a1f275ac473f3cf9f4e465665a885a698d7483 (diff)
downloadsrc-331dff0737ad1c1f4860328b79f1b77682b5fcb8.tar.gz
src-331dff0737ad1c1f4860328b79f1b77682b5fcb8.zip
Notes
Diffstat (limited to 'sys/netinet6/ip6_mroute.c')
-rw-r--r--sys/netinet6/ip6_mroute.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index a2f9a7c408a0..f560dc527459 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1583,15 +1583,8 @@ phyint_send(struct ip6_hdr *ip6, struct mif6 *mifp, struct mbuf *m)
* If configured to loop back multicasts by default,
* loop back a copy now.
*/
- if (in6_mcast_loop) {
- struct sockaddr_in6 dst6;
-
- bzero(&dst6, sizeof(dst6));
- dst6.sin6_len = sizeof(struct sockaddr_in6);
- dst6.sin6_family = AF_INET6;
- dst6.sin6_addr = ip6->ip6_dst;
- ip6_mloopback(ifp, m, &dst6);
- }
+ if (in6_mcast_loop)
+ ip6_mloopback(ifp, m);
/*
* Put the packet into the sending queue of the outgoing interface