Return-Path: Received: from mail-qk0-f195.google.com ([209.85.220.195]:42246 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965052AbeB1XoJ (ORCPT ); Wed, 28 Feb 2018 18:44:09 -0500 Received: by mail-qk0-f195.google.com with SMTP id b130so5331430qkg.9 for ; Wed, 28 Feb 2018 15:44:09 -0800 (PST) From: Donald Sharp To: netdev@vger.kernel.org, dsahern@gmail.com Subject: [PATCH v4 iproute2-next 0/3] Allow 'ip rule' command to use protocol Date: Wed, 28 Feb 2018 18:43:57 -0500 Message-Id: <20180228234400.14321-1-sharpd@cumulusnetworks.com> In-Reply-To: <20180221015348.32646-1-sharpd@cumulusnetworks.com> References: <20180221015348.32646-1-sharpd@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: Fix iprule.c to use the actual `struct fib_rule_hdr` and to allow the end user to see and use the protocol keyword for rule manipulation. v2: Rearrange and code changes as per David Ahern v3: Fix some missed RTN_XXX to appropriate FR_XX and doc changes v4: Cleanup some code, fix 'ip rule save' no parameters and doc changes Donald Sharp (3): ip: Use the `struct fib_rule_hdr` for rules ip: Display ip rule protocol used ip: Allow rules to accept a specified protocol include/uapi/linux/fib_rules.h | 1 + ip/iprule.c | 173 +++++++++++++++++++++++++---------------- man/man8/ip-rule.8 | 18 ++++- 3 files changed, 126 insertions(+), 66 deletions(-) -- 2.14.3