From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2] ip: mroute: Add table output to show command Date: Wed, 14 Jun 2017 09:42:11 -0600 Message-ID: References: <1497442092-14252-1-git-send-email-sharpd@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Donald Sharp , netdev@vger.kernel.org, stephen@networkplumber.org Return-path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:36297 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbdFNPmQ (ORCPT ); Wed, 14 Jun 2017 11:42:16 -0400 Received: by mail-pf0-f194.google.com with SMTP id y7so555048pfd.3 for ; Wed, 14 Jun 2017 08:42:16 -0700 (PDT) In-Reply-To: <1497442092-14252-1-git-send-email-sharpd@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: On 6/14/17 6:08 AM, Donald Sharp wrote: > diff --git a/ip/ipmroute.c b/ip/ipmroute.c > index 4d2d758..70f4c4f 100644 > --- a/ip/ipmroute.c > +++ b/ip/ipmroute.c > @@ -189,6 +189,11 @@ int print_mroute(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) > fprintf(fp, ", Age %4i.%.2i", (int)tv.tv_sec, > (int)tv.tv_usec/10000); > } > + > + if (table && (table != RT_TABLE_MAIN || show_details > 0) && !filter.tb) > + fprintf(fp, " Table: %s", I suggest lowercase 'table' to be consistent with ip route output. > + rtnl_rttable_n2a(table, b1, sizeof(b1))); > + > fprintf(fp, "\n"); > fflush(fp); > return 0; > --