All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Gokul Sivakumar <gokulkumar792@gmail.com>,
	netdev@vger.kernel.org, David Ahern <dsahern@gmail.com>
Subject: Re: [PATCH iproute2-next v2] ipneigh: add support to print brief output of neigh cache in tabular format
Date: Mon, 2 Aug 2021 10:16:13 -0600	[thread overview]
Message-ID: <8656e8f0-70bd-6076-ea07-4bd53bd1a203@gmail.com> (raw)
In-Reply-To: <20210727164628.2005805-1-gokulkumar792@gmail.com>

On 7/27/21 10:46 AM, Gokul Sivakumar wrote:
> Make use of the already available brief flag and print the basic details of
> the IPv4 or IPv6 neighbour cache in a tabular format for better readability
> when the brief output is expected.
> 
> $ ip -br neigh
> 172.16.12.100                           bridge0          b0:fc:36:2f:07:43
> 172.16.12.174                           bridge0          8c:16:45:2f:bc:1c
> 172.16.12.250                           bridge0          04:d9:f5:c1:0c:74
> fe80::267b:9f70:745e:d54d               bridge0          b0:fc:36:2f:07:43
> fd16:a115:6a62:0:8744:efa1:9933:2c4c    bridge0          8c:16:45:2f:bc:1c
> fe80::6d9:f5ff:fec1:c74                 bridge0          04:d9:f5:c1:0c:74
> 
> And add "ip neigh show" to the list of ip sub commands mentioned in the man
> page that support the brief output in tabular format.
> 
> Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com>
> ---
> 
> Notes:
>     Changes in v2:
>     - Reordered the columns in the brief output to be consistent with the order of the
>       fields in the non-brief output.
>     - changed the format specifier width of dst field from "%-40s" to "%-39s " to be
>       consistent with the way width of dev field is specified.
> 
>  ip/ipneigh.c  | 50 +++++++++++++++++++++++++++++++++++++++++++++++++-
>  man/man8/ip.8 |  2 +-
>  2 files changed, 50 insertions(+), 2 deletions(-)
> 

applied to iproute2-next


      reply	other threads:[~2021-08-02 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 16:46 [PATCH iproute2-next v2] ipneigh: add support to print brief output of neigh cache in tabular format Gokul Sivakumar
2021-08-02 16:16 ` David Ahern [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8656e8f0-70bd-6076-ea07-4bd53bd1a203@gmail.com \
    --to=dsahern@gmail.com \
    --cc=gokulkumar792@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.