From owner-freebsd-net@freebsd.org Thu Jun 25 16:18:44 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94CF998DA31 for ; Thu, 25 Jun 2015 16:18:44 +0000 (UTC) (envelope-from emeric.poupon@stormshield.eu) Received: from work.netasq.com (gwlille.netasq.com [91.212.116.1]) by mx1.freebsd.org (Postfix) with ESMTP id 5C2AD1A53 for ; Thu, 25 Jun 2015 16:18:43 +0000 (UTC) (envelope-from emeric.poupon@stormshield.eu) Received: from work.netasq.com (localhost.localdomain [127.0.0.1]) by work.netasq.com (Postfix) with ESMTP id 68A7A2705DF0; Thu, 25 Jun 2015 18:18:36 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by work.netasq.com (Postfix) with ESMTP id 3F7712705CC1; Thu, 25 Jun 2015 18:18:36 +0200 (CEST) Received: from work.netasq.com ([127.0.0.1]) by localhost (work.netasq.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9PYB4dY8y8KP; Thu, 25 Jun 2015 18:18:36 +0200 (CEST) Received: from work.netasq.com (localhost.localdomain [127.0.0.1]) by work.netasq.com (Postfix) with ESMTP id E7C642705B2B; Thu, 25 Jun 2015 18:18:35 +0200 (CEST) Date: Thu, 25 Jun 2015 18:18:35 +0200 (CEST) From: Emeric POUPON To: "Andrey V. Elsukov" Cc: freebsd-net@freebsd.org Message-ID: <2028687645.4478774.1435249115536.JavaMail.zimbra@stormshield.eu> In-Reply-To: <558B963C.9090302@yandex.ru> References: <1192147789.4088965.1435134165130.JavaMail.zimbra@stormshield.eu> <886014477.4193151.1435158793240.JavaMail.zimbra@stormshield.eu> <558B963C.9090302@yandex.ru> Subject: Re: Multicast routing questions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thread-Topic: Multicast routing questions Thread-Index: RSdh6fuaVpztKmVK+IfnCJyLmKxn7g== X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2015 16:18:44 -0000 Ok thanks, I understand this case. But the problem is that we perform a lot of unnecessary mforward calls from= ip_input. The mrt route cache lookup is performed thanks to the src/dst addresse coup= le. The interface of the cached route does not match the current interface and = that is what prevents "infinite" loops. Is that really how it is meant to be done? Emeric ----- Mail original ----- De: "Andrey V. Elsukov" =C3=80: "Emeric POUPON" , freebsd-net@freebsd= .org Envoy=C3=A9: Jeudi 25 Juin 2015 07:48:44 Objet: Re: Multicast routing questions On 24.06.2015 18:13, Emeric POUPON wrote: > Hi, >=20 > Actually, I don't really understand why imo.imo_multicast_loop is set > to 1 in send_packet, ip_mroute.c >=20 > It seems we don't need to loop the packet once it is mrouted?=20 I think this can be used for the case, when on the router some app has been joined to multicast group on the specific interface used as outgoing in send_packet. --=20 WBR, Andrey V. Elsukov