]> 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)
commitdbe9cb9adad764271b7df1d17bed4e0a18d5b4c6
treee51c00c3d4429f0509f38efd0a6c7935dd19dd51
parent957a0b18f9b659be5de43fcd2d5504a4c44bd627
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