Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A90ACC43381 for ; Tue, 26 Feb 2019 22:27:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8031C2186A for ; Tue, 26 Feb 2019 22:27:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729136AbfBZW1t (ORCPT ); Tue, 26 Feb 2019 17:27:49 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:60974 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728989AbfBZW1t (ORCPT ); Tue, 26 Feb 2019 17:27:49 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 79B0714F28E03; Tue, 26 Feb 2019 14:27:40 -0800 (PST) Date: Tue, 26 Feb 2019 14:27:36 -0800 (PST) Message-Id: <20190226.142736.1056480085548243192.davem@davemloft.net> To: dsahern@kernel.org Cc: netdev@vger.kernel.org, dsahern@gmail.com Subject: Re: [PATCH net 0/3] net: Fail route add with unsupported nexthop attribute From: David Miller In-Reply-To: <20190226170004.4535-1-dsahern@kernel.org> References: <20190226170004.4535-1-dsahern@kernel.org> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 26 Feb 2019 14:27:40 -0800 (PST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: David Ahern Date: Tue, 26 Feb 2019 09:00:01 -0800 > From: David Ahern > > RTA_VIA was added for MPLS as a way of specifying a gateway from a > different address family. IPv4 and IPv6 do not currently support RTA_VIA > so using it leads to routes that are not what the user intended. Catch > and fail - returning a proper error message. > > MPLS on the other hand does not support RTA_GATEWAY since it does not > make sense to have a nexthop from the MPLS address family. Similarly, > catch and fail - returning a proper error message. Series applied and queued up for -stable.