From patchwork Tue Apr 23 07:16:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Haller X-Patchwork-Id: 1089105 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44pF9x74PKz9sNK for ; Tue, 23 Apr 2019 17:16:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbfDWHQg (ORCPT ); Tue, 23 Apr 2019 03:16:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46400 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfDWHQg (ORCPT ); Tue, 23 Apr 2019 03:16:36 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 23091307D8BE; Tue, 23 Apr 2019 07:16:36 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-94.ams2.redhat.com [10.36.116.94]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 27B7F1A90F; Tue, 23 Apr 2019 07:16:34 +0000 (UTC) From: Thomas Haller To: netdev@vger.kernel.org Cc: stephen@networkplumber.org, Thomas Haller Subject: [PATCH 4/4] iprule: always print realms keyword for rule Date: Tue, 23 Apr 2019 09:16:15 +0200 Message-Id: <20190423071615.19729-4-thaller@redhat.com> In-Reply-To: <20190423071615.19729-1-thaller@redhat.com> References: <20190423071615.19729-1-thaller@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Tue, 23 Apr 2019 07:16:36 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org # rule add priority 10 realms 1/0xF # rule add priority 10 realms 0/0xF # ip rule 10: from all lookup main 15 10: from all lookup main realms 1/15 The previous behavior was there since the beginning. Signed-off-by: Thomas Haller --- ip/iprule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/iprule.c b/ip/iprule.c index b00ca7d1..9f5d998b 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -428,7 +428,7 @@ int print_rule(struct nlmsghdr *n, void *arg) "flow_from", " realms %s/", rtnl_rtrealm_n2a(from, b1, sizeof(b1))); else - print_string(PRINT_FP, NULL, " ", NULL); + print_string(PRINT_FP, NULL, " realms ", NULL); print_string(PRINT_ANY, "flow_to", "%s", rtnl_rtrealm_n2a(to, b1, sizeof(b1)));