]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ipneigh: add support to print brief output of neigh cache in tabular format
authorGokul Sivakumar <gokulkumar792@gmail.com>
Tue, 27 Jul 2021 16:46:28 +0000 (22:16 +0530)
committerDavid Ahern <dsahern@kernel.org>
Mon, 2 Aug 2021 16:14:50 +0000 (10:14 -0600)
commitcf866f0a5a1ff19d9e08bebc6798954181745dff
tree8766d450f4354ed790759fc32a0410eb51917634
parent02c06ffc13b40da269584eff42eb850b4d54c921
ipneigh: add support to print brief output of neigh cache in tabular format

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>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipneigh.c
man/man8/ip.8