Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4330872pxb; Tue, 26 Jan 2021 19:53:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzl70qf2sXfxWtljtlWZ0oifwg9JDm/FGpTDpU0ZyWR777hxR0xHuKw1zZJwRut1AzVsoza X-Received: by 2002:a17:906:8046:: with SMTP id x6mr5468968ejw.351.1611719623214; Tue, 26 Jan 2021 19:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611719623; cv=none; d=google.com; s=arc-20160816; b=0QznMhySuDMkP+M9GxghMaCyAfZXAdpEmC+EHL2jWnlAJzqfsAXPPY7HIxRwk1x2d5 vtk+joB2jYE1eMky8Qbr0ENXVLP4eVxGSgJvWGnu/njeCTgKoKhNxzm5KIrQjtYeiRLV BMNbI0V0hWXnMQZGoR9SxzJSOUdfsttz/QnImQcSeAO9fnLHW72/SbrtbQvaC1+r5ly7 vjLM3JVRw/Fc0L8CiOH+X4ErzENaz2AXOzvhhzIHDzPeMpx3JJj0BInnLwsEq9QshE+X Of+FNw7ANbaKUDYkWr2rpqs9HCjQ1m/xR6J//xjILx4RiGwfRFo6o/P+D0GduXH1d75V oZQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L4XRRfxR2OjYGzCE32jrM1C4TLuTAKWKKNBWPwl3coQ=; b=sC59RATCrF/0R39KLPr2TT0CRTEd81Btoe271ccBHruS25VdMe7DqJCvh2smI5/1Sm zpJm5R52VTjA1QYn3v9KSKQyOKAavhnj8ZNz2uem23kn2a1ke7WQPNJFkbRCTHNGP4vv hyP0PwTEDsu+WL5e5QWywsvL+w1ztRo5JokAjydiKHnyqSVYrRruYnA0B68u5DKAGG2x VOmE2dcBI+/1meCm6was+VRwuhjjrROS10qfI4mFN4YZ+PN4ytVHNdnPVjFWGCq1td9Y kvjxtgxc/SdQN33j9LjHEQhr4QQ8rMAd6zyCEYTJo93PpRIszMLB5AfkcGCquISymDib HUxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hmDgitTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd17si326417edb.553.2021.01.26.19.53.18; Tue, 26 Jan 2021 19:53:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hmDgitTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390242AbhAZIes (ORCPT + 99 others); Tue, 26 Jan 2021 03:34:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:59202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbhAYSnZ (ORCPT ); Mon, 25 Jan 2021 13:43:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77B6522482; Mon, 25 Jan 2021 18:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611600166; bh=h4nEGSGIR71j0dXxO+NGRIhQehfYhSfGnGcNYL/Dd8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hmDgitTMbqkTHXjkB9YLXuQW1PnVKWZ/USHJg44BFTt6CBLMqZAcQpGsxIUXrLv+z NBANf0qOPe+UsRmd8X8VDrEkbiNQRhscZSCe1Tgt8MpAoxRSEXjBCJBuGnrgWfyLPs 9hAIsS1rk+DJKMlIQIKytH0GNjp+rFKuTDCQOwnc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matteo Croce , Jakub Kicinski Subject: [PATCH 4.19 55/58] ipv6: set multicast flag on the multicast route Date: Mon, 25 Jan 2021 19:39:56 +0100 Message-Id: <20210125183159.057398218@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210125183156.702907356@linuxfoundation.org> References: <20210125183156.702907356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matteo Croce commit ceed9038b2783d14e0422bdc6fd04f70580efb4c upstream. The multicast route ff00::/8 is created with type RTN_UNICAST: $ ip -6 -d route unicast ::1 dev lo proto kernel scope global metric 256 pref medium unicast fe80::/64 dev eth0 proto kernel scope global metric 256 pref medium unicast ff00::/8 dev eth0 proto kernel scope global metric 256 pref medium Set the type to RTN_MULTICAST which is more appropriate. Fixes: e8478e80e5a7 ("net/ipv6: Save route type in rt6_info") Signed-off-by: Matteo Croce Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ipv6/addrconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -2395,7 +2395,7 @@ static void addrconf_add_mroute(struct n .fc_ifindex = dev->ifindex, .fc_dst_len = 8, .fc_flags = RTF_UP, - .fc_type = RTN_UNICAST, + .fc_type = RTN_MULTICAST, .fc_nlinfo.nl_net = dev_net(dev), .fc_protocol = RTPROT_KERNEL, };