History

tipc: add media get/dump to new netlink api

Add TIPC_NL_MEDIA_GET command to the new tipc netlink API. This command supports dumping all information about all defined media as well as getting all information about a specific media. The information about a media includes name and link properties. Netlink logical layout of media get response message: -> media -> name -> link properties -> tolerance -> priority -> window

Richard Alpe committed 11 years ago

Commit 46f15c61 parent ae363424 files · +147 −0Browse files

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

Unified · Split

include/uapi/linux/tipc_netlink.h+12−0
@@ -50,6 +50,7 @@ enum { · 49 unmodified lines
50 TIPC_NL_LINK_GET,50 TIPC_NL_LINK_GET,
51 TIPC_NL_LINK_SET,51 TIPC_NL_LINK_SET,
52 TIPC_NL_LINK_RESET_STATS,52 TIPC_NL_LINK_RESET_STATS,
53 TIPC_NL_MEDIA_GET,
53 54
54 __TIPC_NL_CMD_MAX,55 __TIPC_NL_CMD_MAX,
55 TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 156 TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 1
@@ -62,6 +63,7 @@ enum { · 6 unmodified lines
62 TIPC_NLA_SOCK, /* nest */63 TIPC_NLA_SOCK, /* nest */
63 TIPC_NLA_PUBL, /* nest */64 TIPC_NLA_PUBL, /* nest */
64 TIPC_NLA_LINK, /* nest */65 TIPC_NLA_LINK, /* nest */
66 TIPC_NLA_MEDIA, /* nest */
65 67
66 __TIPC_NLA_MAX,68 __TIPC_NLA_MAX,
67 TIPC_NLA_MAX = __TIPC_NLA_MAX - 169 TIPC_NLA_MAX = __TIPC_NLA_MAX - 1
@@ -108,6 +110,16 @@ enum { · 40 unmodified lines
108 TIPC_NLA_LINK_MAX = __TIPC_NLA_LINK_MAX - 1110 TIPC_NLA_LINK_MAX = __TIPC_NLA_LINK_MAX - 1
109};111};
110 112
113/* Media info */
114enum {
115 TIPC_NLA_MEDIA_UNSPEC,
116 TIPC_NLA_MEDIA_NAME, /* string */
117 TIPC_NLA_MEDIA_PROP, /* nest */
118
119 __TIPC_NLA_MEDIA_MAX,
120 TIPC_NLA_MEDIA_MAX = __TIPC_NLA_MEDIA_MAX - 1
121};
122
111/* Publication info */123/* Publication info */
112enum {124enum {
113 TIPC_NLA_PUBL_UNSPEC,125 TIPC_NLA_PUBL_UNSPEC,