tipc: add node get/dump to new netlink api
authorRichard Alpe <[email protected]>
Thu, 20 Nov 2014 09:29:17 +0000 (10:29 +0100)
committerDavid S. Miller <[email protected]>
Fri, 21 Nov 2014 20:01:31 +0000 (15:01 -0500)
commit3e4b6ab58d614934e7ca99bdf448089695d34ffa
treed802397c1372ddba7e63eb784afb13261381d106
parent1e55417d8fc6f6d93b1cc6995b911d48ded2adfb
tipc: add node get/dump to new netlink api

Add TIPC_NL_NODE_GET to the new tipc netlink API.

This command can dump the address and node status of all nodes in the
tipc cluster.

Netlink logical layout of returned node/address data:
-> node
    -> address
    -> up flag

Signed-off-by: Richard Alpe <[email protected]>
Reviewed-by: Erik Hugne <[email protected]>
Reviewed-by: Jon Maloy <[email protected]>
Acked-by: Ying Xue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/uapi/linux/tipc_netlink.h
net/tipc/netlink.c
net/tipc/node.c
net/tipc/node.h