]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip neigh: Support --json on ip neigh get
authorLeonard Crestez <cdleonard@gmail.com>
Thu, 1 Dec 2022 21:41:05 +0000 (23:41 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 2 Dec 2022 15:54:28 +0000 (08:54 -0700)
commit94fc813b85dfde340e8725b3da6385a7b81e43f2
tree9e51d627ba265521df220b52b59c3f00db344d45
parenta4442ce58ebbbff8dda9126ccbcad86f3997ab1c
ip neigh: Support --json on ip neigh get

The ip neigh command supports --json for "list" but not for "get". Add
json support for the "get" command so that it's possible to fetch
information about specific neighbors without regular expressions.

Fixes: aac7f725fa46 ("ipneigh: add color and json support")
Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipneigh.c