]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: make legacy address flag readable over netlink
authorJohn Rutherford <john.rutherford@dektech.com.au>
Thu, 19 Dec 2019 05:03:57 +0000 (16:03 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:18:42 +0000 (21:18 -0800)
commitc15119cab2202f2fd7ae8d01c1d21737bd4f1d08
treee51c00c3d4429f0509f38efd0a6c7935dd19dd51
parent5825c417446ccd9b12bdb84609332a7ee4ecea21
tipc: make legacy address flag readable over netlink

To enable iproute2/tipc to generate backwards compatible
printouts and validate command parameters for nodes using a
<z.c.n> node address, it needs to be able to read the legacy
address flag from the kernel.  The legacy address flag records
the way in which the node identity was originally specified.

The legacy address flag is requested by the netlink message
TIPC_NL_ADDR_LEGACY_GET.  If the flag is set the attribute
TIPC_NLA_NET_ADDR_LEGACY is set in the return message.

Signed-off-by: John Rutherford <john.rutherford@dektech.com.au>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tipc_netlink.h
net/tipc/net.c
net/tipc/net.h
net/tipc/netlink.c