]> git.proxmox.com Git - mirror_iproute2.git/commit - tipc/node.c
tipc: fixed node and name table listings
authorJon Maloy <jon.maloy@ericsson.com>
Thu, 17 May 2018 14:02:42 +0000 (16:02 +0200)
committerDavid Ahern <dsahern@gmail.com>
Fri, 18 May 2018 16:12:24 +0000 (09:12 -0700)
commit5947046dd9612fe07577d806d752ed72ee70f0e6
treee79b0527bcab1a62cd4ad7bbff71fc08ad21074e
parent53d34eb66cf1c40b60927bdadb9959353980537e
tipc: fixed node and name table listings

We make it easier for users to correlate between 128-bit node
identities and 32-bit node hash number by extending the 'node list'
command to also show the hash number.

We also improve the 'nametable show' command to show the node identity
instead of the node hash number. Since the former potentially is much
longer than the latter, we make room for it by eliminating the (to the
user) irrelevant publication key. We also reorder some of the columns so
that the node id comes last, since this looks nicer and is more logical.

Signed-off-by: David Ahern <dsahern@gmail.com>
tipc/misc.c
tipc/misc.h
tipc/nametable.c
tipc/node.c
tipc/peer.c