diff options
| author | Olof Johansson <olof@lixom.net> | 2014-07-19 17:59:07 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-07-19 17:59:07 -0400 |
| commit | 4e9816d012dbc28dc89559261c6ffbf8ffc440dd (patch) | |
| tree | dee9f8b31f3d6d2fb141541da88e1cc1329b017e /include/uapi/linux/tipc.h | |
| parent | da98f44f27d81d7fe9a41f69af4fe08c18d13b56 (diff) | |
| parent | 1795cd9b3a91d4b5473c97f491d63892442212ab (diff) | |
Merge tag 'v3.16-rc5' into next/fixes-non-critical
Linux 3.16-rc5
Diffstat (limited to 'include/uapi/linux/tipc.h')
| -rw-r--r-- | include/uapi/linux/tipc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/uapi/linux/tipc.h b/include/uapi/linux/tipc.h index 852373d27dbb..6f71b9b41595 100644 --- a/include/uapi/linux/tipc.h +++ b/include/uapi/linux/tipc.h | |||
| @@ -38,6 +38,7 @@ | |||
| 38 | #define _LINUX_TIPC_H_ | 38 | #define _LINUX_TIPC_H_ |
| 39 | 39 | ||
| 40 | #include <linux/types.h> | 40 | #include <linux/types.h> |
| 41 | #include <linux/sockios.h> | ||
| 41 | 42 | ||
| 42 | /* | 43 | /* |
| 43 | * TIPC addressing primitives | 44 | * TIPC addressing primitives |
| @@ -87,6 +88,7 @@ static inline unsigned int tipc_node(__u32 addr) | |||
| 87 | 88 | ||
| 88 | #define TIPC_CFG_SRV 0 /* configuration service name type */ | 89 | #define TIPC_CFG_SRV 0 /* configuration service name type */ |
| 89 | #define TIPC_TOP_SRV 1 /* topology service name type */ | 90 | #define TIPC_TOP_SRV 1 /* topology service name type */ |
| 91 | #define TIPC_LINK_STATE 2 /* link state name type */ | ||
| 90 | #define TIPC_RESERVED_TYPES 64 /* lowest user-publishable name type */ | 92 | #define TIPC_RESERVED_TYPES 64 /* lowest user-publishable name type */ |
| 91 | 93 | ||
| 92 | /* | 94 | /* |
| @@ -206,4 +208,25 @@ struct sockaddr_tipc { | |||
| 206 | #define TIPC_NODE_RECVQ_DEPTH 131 /* Default: none (read only) */ | 208 | #define TIPC_NODE_RECVQ_DEPTH 131 /* Default: none (read only) */ |
| 207 | #define TIPC_SOCK_RECVQ_DEPTH 132 /* Default: none (read only) */ | 209 | #define TIPC_SOCK_RECVQ_DEPTH 132 /* Default: none (read only) */ |
| 208 | 210 | ||
| 211 | /* | ||
| 212 | * Maximum sizes of TIPC bearer-related names (including terminating NULL) | ||
| 213 | * The string formatting for each name element is: | ||
| 214 | * media: media | ||
| 215 | * interface: media:interface name | ||
| 216 | * link: Z.C.N:interface-Z.C.N:interface | ||
| 217 | * | ||
| 218 | */ | ||
| 219 | |||
| 220 | #define TIPC_MAX_MEDIA_NAME 16 | ||
| 221 | #define TIPC_MAX_IF_NAME 16 | ||
| 222 | #define TIPC_MAX_BEARER_NAME 32 | ||
| 223 | #define TIPC_MAX_LINK_NAME 60 | ||
| 224 | |||
| 225 | #define SIOCGETLINKNAME SIOCPROTOPRIVATE | ||
| 226 | |||
| 227 | struct tipc_sioc_ln_req { | ||
| 228 | __u32 peer; | ||
| 229 | __u32 bearer_id; | ||
| 230 | char linkname[TIPC_MAX_LINK_NAME]; | ||
| 231 | }; | ||
| 209 | #endif | 232 | #endif |
