From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: Re: [PATCH v3 net-next] net/ipv6: Do not allow route add with a device that is down Date: Thu, 25 Jan 2018 17:35:35 +0200 Message-ID: <20180125153535.GA1453@splinter.mtl.com> References: <20180125034529.9987-1-dsahern@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: David Ahern Return-path: Received: from out2-smtp.messagingengine.com ([66.111.4.26]:40305 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbeAYPfj (ORCPT ); Thu, 25 Jan 2018 10:35:39 -0500 Content-Disposition: inline In-Reply-To: <20180125034529.9987-1-dsahern@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jan 24, 2018 at 07:45:29PM -0800, David Ahern wrote: > IPv6 allows routes to be installed when the device is not up (admin up). > Worse, it does not mark it as LINKDOWN. IPv4 does not allow it and really > there is no reason for IPv6 to allow it, so check the flags and deny if > device is admin down. > > Signed-off-by: David Ahern Reviewed-by: Ido Schimmel Thanks!