From owner-freebsd-net@freebsd.org Thu Jun 25 19:40:11 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 EF6D598CA5F for ; Thu, 25 Jun 2015 19:40:11 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward5l.mail.yandex.net (forward5l.mail.yandex.net [IPv6:2a02:6b8:0:1819::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AE8151B07 for ; Thu, 25 Jun 2015 19:40:11 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp16.mail.yandex.net (smtp16.mail.yandex.net [IPv6:2a02:6b8:0:1402::117]) by forward5l.mail.yandex.net (Yandex) with ESMTP id 8F02FC41139; Thu, 25 Jun 2015 22:40:01 +0300 (MSK) Received: from smtp16.mail.yandex.net (localhost [127.0.0.1]) by smtp16.mail.yandex.net (Yandex) with ESMTP id 0D0E86A00B0; Thu, 25 Jun 2015 22:40:00 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:1495::17c]) by smtp16.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dbX02r2vta-dvSO2SAq; Thu, 25 Jun 2015 22:39:57 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1435261197; bh=F3kjpiAvepjdehizjv4y7X4rq5y5q1xQu3Qi+OsP9Uk=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=tM+5encpL3Z6U3CDQ3f8etfZuxwspLrCs85Fmxvz0e18H3UzTkSASmHaUPhr3+l1V ExuUWQ4EkSld611o0oSASMy5l6GCoiqTRC2KJmGuZkrMeNtgl69YvK5rN2QJlzLACt 67SkwepCDoj2sWM+SH9hhW6ALVSXPbOVOXLzz9Do= Authentication-Results: smtp16.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <558C5870.8000303@yandex.ru> Date: Thu, 25 Jun 2015 22:37:20 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Emeric POUPON CC: freebsd-net@freebsd.org Subject: Re: Multicast routing questions References: <1192147789.4088965.1435134165130.JavaMail.zimbra@stormshield.eu> <886014477.4193151.1435158793240.JavaMail.zimbra@stormshield.eu> <558B963C.9090302@yandex.ru> <2028687645.4478774.1435249115536.JavaMail.zimbra@stormshield.eu> In-Reply-To: <2028687645.4478774.1435249115536.JavaMail.zimbra@stormshield.eu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 19:40:12 -0000 On 25.06.2015 19:18, Emeric POUPON wrote: > 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 couple. > 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? I'm agree it isn't optimal. Do you have some patches that improves this? It looks like freebsd is used very rare as multicast router. So, if you break something, this will not be found soon. -- WBR, Andrey V. Elsukov