From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH iproute2] ipmaddr: use preferred_family when given Date: Fri, 17 Aug 2018 09:29:52 -0700 Message-ID: <20180817092952.5f79903f@xeon-e3> References: <20180815230855.130278-1-mahesh@bandewar.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev , Mahesh Bandewar To: Mahesh Bandewar Return-path: Received: from mail-pf1-f194.google.com ([209.85.210.194]:37392 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727447AbeHQTd4 (ORCPT ); Fri, 17 Aug 2018 15:33:56 -0400 Received: by mail-pf1-f194.google.com with SMTP id a26-v6so3729331pfo.4 for ; Fri, 17 Aug 2018 09:29:55 -0700 (PDT) In-Reply-To: <20180815230855.130278-1-mahesh@bandewar.net> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 15 Aug 2018 16:08:55 -0700 Mahesh Bandewar wrote: > From: Mahesh Bandewar > > When creating socket() AF_INET is used irrespective of the family > that is given at the command-line (with -4, -6, or -0). This change > will open the socket with the preferred family. > > Signed-off-by: Mahesh Bandewar > --- > ip/ipmaddr.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) What is impact of this? Does ip multicast address changes not work on IPv6? Or is it just doing the right thing?