]> git.proxmox.com Git - mirror_iproute2.git/commit - tipc/peer.c
tipc: support 128bit node identity for peer removing
authorHoang Le <hoang.h.le@dektech.com.au>
Thu, 27 Aug 2020 02:30:37 +0000 (09:30 +0700)
committerDavid Ahern <dsahern@gmail.com>
Wed, 2 Sep 2020 02:01:39 +0000 (20:01 -0600)
commitabee772ff1246218d7d3564e2771fa3c700f719c
tree8544d28c5a43dba6733b715fd3ffee9dc4f42c31
parent6fd53b2a1c9a94066f81806700546f39d368b657
tipc: support 128bit node identity for peer removing

Problem:
In kernel upstream, we add the support to set node identity with
128bit. However, we are still using legacy format in command tipc
peer removing. Then, we got a problem when trying to remove
offline node i.e:

$ tipc node list
Node Identity                    Hash     State
d6babc1c1c6d                     1cbcd7ca down

$ tipc peer remove address d6babc1c1c6d
invalid network address, syntax: Z.C.N
error: No such device or address

Solution:
We add the support to remove a specific node down with 128bit
node identifier, as an alternative to legacy 32-bit node address.

Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Huu Le <hoang.h.le@dektech.com.au>
Signed-off-by: David Ahern <dsahern@gmail.com>
tipc/peer.c