aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/tipc.h
diff options
context:
space:
mode:
authorJon Maloy <jon.maloy@ericsson.com>2018-04-25 13:29:36 -0400
committerDavid S. Miller <davem@davemloft.net>2018-04-27 11:05:41 -0400
commit3e5cf362c34b14c8d01d19d4b821fb35e1779862 (patch)
treed798193490f920228a538594fb7422d264d888fa /include/uapi/linux/tipc.h
parent79741a38b4a2538a68342c45b813ecb9dd648ee8 (diff)
tipc: introduce ioctl for fetching node identity
After the introduction of a 128-bit node identity it may be difficult for a user to correlate between this identity and the generated node hash address. We now try to make this easier by introducing a new ioctl() call for fetching a node identity by using the hash value as key. This will be particularly useful when we extend some of the commands in the 'tipc' tool, but we also expect regular user applications to need this feature. Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/tipc.h')
-rw-r--r--include/uapi/linux/tipc.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/uapi/linux/tipc.h b/include/uapi/linux/tipc.h
index bf6d28677cfe..6b2fd4d9655f 100644
--- a/include/uapi/linux/tipc.h
+++ b/include/uapi/linux/tipc.h
@@ -209,16 +209,16 @@ struct tipc_group_req {
209 * The string formatting for each name element is: 209 * The string formatting for each name element is:
210 * media: media 210 * media: media
211 * interface: media:interface name 211 * interface: media:interface name
212 * link: Z.C.N:interface-Z.C.N:interface 212 * link: node:interface-node:interface
213 *
214 */ 213 */
215 214#define TIPC_NODEID_LEN 16
216#define TIPC_MAX_MEDIA_NAME 16 215#define TIPC_MAX_MEDIA_NAME 16
217#define TIPC_MAX_IF_NAME 16 216#define TIPC_MAX_IF_NAME 16
218#define TIPC_MAX_BEARER_NAME 32 217#define TIPC_MAX_BEARER_NAME 32
219#define TIPC_MAX_LINK_NAME 68 218#define TIPC_MAX_LINK_NAME 68
220 219
221#define SIOCGETLINKNAME SIOCPROTOPRIVATE 220#define SIOCGETLINKNAME SIOCPROTOPRIVATE
221#define SIOCGETNODEID (SIOCPROTOPRIVATE + 1)
222 222
223struct tipc_sioc_ln_req { 223struct tipc_sioc_ln_req {
224 __u32 peer; 224 __u32 peer;
@@ -226,6 +226,10 @@ struct tipc_sioc_ln_req {
226 char linkname[TIPC_MAX_LINK_NAME]; 226 char linkname[TIPC_MAX_LINK_NAME];
227}; 227};
228 228
229struct tipc_sioc_nodeid_req {
230 __u32 peer;
231 char node_id[TIPC_NODEID_LEN];
232};
229 233
230/* The macros and functions below are deprecated: 234/* The macros and functions below are deprecated:
231 */ 235 */