From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next] ipv4: Allow sending multicast packets on specific i/f using VRF socket Date: Mon, 1 Oct 2018 18:30:35 -0600 Message-ID: <536d5519-b2a2-c5f0-b17b-a8896a1d06b5@gmail.com> References: <20181001084023.32310-1-mmanning@vyatta.att-mail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Robert Shearman To: Mike Manning , netdev@vger.kernel.org Return-path: Received: from mail-it1-f195.google.com ([209.85.166.195]:55007 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbeJBHLB (ORCPT ); Tue, 2 Oct 2018 03:11:01 -0400 Received: by mail-it1-f195.google.com with SMTP id l191-v6so881500ita.4 for ; Mon, 01 Oct 2018 17:30:37 -0700 (PDT) In-Reply-To: <20181001084023.32310-1-mmanning@vyatta.att-mail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/1/18 2:40 AM, Mike Manning wrote: > From: Robert Shearman > > It is useful to be able to use the same socket for listening in a > specific VRF, as for sending multicast packets out of a specific > interface. However, the bound device on the socket currently takes > precedence and results in the packets not being sent. > > Relax the condition on overriding the output interface to use for > sending packets out of UDP, raw and ping sockets to allow multicast > packets to be sent using the specified multicast interface. > > Signed-off-by: Robert Shearman > Signed-off-by: Mike Manning > --- > net/ipv4/datagram.c | 2 +- > net/ipv4/ping.c | 2 +- > net/ipv4/raw.c | 2 +- > net/ipv4/udp.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: David Ahern