History

tipc: add publication dump to new netlink api

Add TIPC_NL_PUBL_GET command to the new tipc netlink API. This command supports dumping of all publications for a specific socket. Netlink logical layout of request message: -> socket -> reference Netlink logical layout of response message: -> publication -> type -> lower -> upper

Richard Alpe committed 11 years ago

Commit 1a1a1431 parent 34b78a15 files · +172 −0Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/tipc_netlink.h+18−0
@@ -46,6 +46,7 @@ enum { · 45 unmodified lines
4646 TIPC_NL_BEARER_GET,
4747 TIPC_NL_BEARER_SET,
4848 TIPC_NL_SOCK_GET,
49+ TIPC_NL_PUBL_GET,
4950
5051 __TIPC_NL_CMD_MAX,
5152 TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 1
@@ -56,6 +57,7 @@ enum { · 4 unmodified lines
5657 TIPC_NLA_UNSPEC,
5758 TIPC_NLA_BEARER, /* nest */
5859 TIPC_NLA_SOCK, /* nest */
60+ TIPC_NLA_PUBL, /* nest */
5961
6062 __TIPC_NLA_MAX,
6163 TIPC_NLA_MAX = __TIPC_NLA_MAX - 1
@@ -84,6 +86,22 @@ enum { · 22 unmodified lines
8486 TIPC_NLA_SOCK_MAX = __TIPC_NLA_SOCK_MAX - 1
8587 };
8688
89+/* Publication info */
90+enum {
91+ TIPC_NLA_PUBL_UNSPEC,
92+
93+ TIPC_NLA_PUBL_TYPE, /* u32 */
94+ TIPC_NLA_PUBL_LOWER, /* u32 */
95+ TIPC_NLA_PUBL_UPPER, /* u32 */
96+ TIPC_NLA_PUBL_SCOPE, /* u32 */
97+ TIPC_NLA_PUBL_NODE, /* u32 */
98+ TIPC_NLA_PUBL_REF, /* u32 */
99+ TIPC_NLA_PUBL_KEY, /* u32 */
100+
101+ __TIPC_NLA_PUBL_MAX,
102+ TIPC_NLA_PUBL_MAX = __TIPC_NLA_PUBL_MAX - 1
103+};
104+
87105 /* Nest, connection info */
88106 enum {
89107 TIPC_NLA_CON_UNSPEC,