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
5050 TIPC_NL_LINK_GET,
5151 TIPC_NL_LINK_SET,
5252 TIPC_NL_LINK_RESET_STATS,
53+ TIPC_NL_MEDIA_GET,
5354
5455 __TIPC_NL_CMD_MAX,
5556 TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 1
@@ -62,6 +63,7 @@ enum { · 6 unmodified lines
6263 TIPC_NLA_SOCK, /* nest */
6364 TIPC_NLA_PUBL, /* nest */
6465 TIPC_NLA_LINK, /* nest */
66+ TIPC_NLA_MEDIA, /* nest */
6567
6668 __TIPC_NLA_MAX,
6769 TIPC_NLA_MAX = __TIPC_NLA_MAX - 1
@@ -108,6 +110,16 @@ enum { · 40 unmodified lines
108110 TIPC_NLA_LINK_MAX = __TIPC_NLA_LINK_MAX - 1
109111 };
110112
113+/* Media info */
114+enum {
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+
111123 /* Publication info */
112124 enum {
113125 TIPC_NLA_PUBL_UNSPEC,