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)
commite1b5e598e5a51b453328879682b178b4acc15105
treee51c00c3d4429f0509f38efd0a6c7935dd19dd51
parent17338900ccfd490242f460d8190dd9610b496601
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