blob: 7640d7996d3e38672e1580b5d6935b51cbc16e58 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_TIPC_CONFIG_H_
20#define _LINUX_TIPC_CONFIG_H_
21#include <linux/types.h>
22#include <linux/string.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070024#include <linux/tipc.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070025#include <asm/byteorder.h>
26#include <arpa/inet.h>
27#define TIPC_CMD_NOOP 0x0000
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070029#define TIPC_CMD_GET_NODES 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define TIPC_CMD_GET_MEDIA_NAMES 0x0002
31#define TIPC_CMD_GET_BEARER_NAMES 0x0003
32#define TIPC_CMD_GET_LINKS 0x0004
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070034#define TIPC_CMD_SHOW_NAME_TABLE 0x0005
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define TIPC_CMD_SHOW_PORTS 0x0006
36#define TIPC_CMD_SHOW_LINK_STATS 0x000B
37#define TIPC_CMD_SHOW_STATS 0x000F
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070039#define TIPC_CMD_GET_REMOTE_MNG 0x4003
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define TIPC_CMD_GET_MAX_PORTS 0x4004
41#define TIPC_CMD_GET_MAX_PUBL 0x4005
42#define TIPC_CMD_GET_MAX_SUBSCR 0x4006
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070044#define TIPC_CMD_GET_MAX_ZONES 0x4007
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define TIPC_CMD_GET_MAX_CLUSTERS 0x4008
46#define TIPC_CMD_GET_MAX_NODES 0x4009
47#define TIPC_CMD_GET_MAX_SLAVES 0x400A
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070049#define TIPC_CMD_GET_NETID 0x400B
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define TIPC_CMD_ENABLE_BEARER 0x4101
51#define TIPC_CMD_DISABLE_BEARER 0x4102
52#define TIPC_CMD_SET_LINK_TOL 0x4107
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070054#define TIPC_CMD_SET_LINK_PRI 0x4108
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define TIPC_CMD_SET_LINK_WINDOW 0x4109
56#define TIPC_CMD_SET_LOG_SIZE 0x410A
57#define TIPC_CMD_DUMP_LOG 0x410B
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070059#define TIPC_CMD_RESET_LINK_STATS 0x410C
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define TIPC_CMD_SET_NODE_ADDR 0x8001
61#define TIPC_CMD_SET_REMOTE_MNG 0x8003
62#define TIPC_CMD_SET_MAX_PORTS 0x8004
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070064#define TIPC_CMD_SET_MAX_PUBL 0x8005
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define TIPC_CMD_SET_MAX_SUBSCR 0x8006
66#define TIPC_CMD_SET_MAX_ZONES 0x8007
67#define TIPC_CMD_SET_MAX_CLUSTERS 0x8008
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070069#define TIPC_CMD_SET_MAX_NODES 0x8009
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define TIPC_CMD_SET_MAX_SLAVES 0x800A
71#define TIPC_CMD_SET_NETID 0x800B
72#define TIPC_CMD_NOT_NET_ADMIN 0xC001
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070074#define TIPC_TLV_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define TIPC_TLV_VOID 1
76#define TIPC_TLV_UNSIGNED 2
77#define TIPC_TLV_STRING 3
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070079#define TIPC_TLV_LARGE_STRING 4
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define TIPC_TLV_ULTRA_STRING 5
81#define TIPC_TLV_ERROR_STRING 16
82#define TIPC_TLV_NET_ADDR 17
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070084#define TIPC_TLV_MEDIA_NAME 18
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define TIPC_TLV_BEARER_NAME 19
86#define TIPC_TLV_LINK_NAME 20
87#define TIPC_TLV_NODE_INFO 21
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070089#define TIPC_TLV_LINK_INFO 22
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define TIPC_TLV_BEARER_CONFIG 23
91#define TIPC_TLV_LINK_CONFIG 24
92#define TIPC_TLV_NAME_TBL_QUERY 25
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094#define TIPC_TLV_PORT_REF 26
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define TIPC_MIN_LINK_PRI 0
96#define TIPC_DEF_LINK_PRI 10
97#define TIPC_MAX_LINK_PRI 31
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070099#define TIPC_MEDIA_LINK_PRI (TIPC_MAX_LINK_PRI + 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define TIPC_MIN_LINK_TOL 50
101#define TIPC_DEF_LINK_TOL 1500
102#define TIPC_MAX_LINK_TOL 30000
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700104#if TIPC_MIN_LINK_TOL < 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#error "TIPC_MIN_LINK_TOL is too small (abort limit may be NaN)"
106#endif
107#define TIPC_MIN_LINK_WIN 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700109#define TIPC_DEF_LINK_WIN 50
Christopher Ferris82d75042015-01-26 10:57:07 -0800110#define TIPC_MAX_LINK_WIN 8191
Ben Cheng655a7c02013-10-16 16:09:24 -0700111struct tipc_node_info {
Tao Baod7db5942015-01-28 10:07:51 -0800112 __be32 addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __be32 up;
Ben Cheng655a7c02013-10-16 16:09:24 -0700115};
116struct tipc_link_info {
Tao Baod7db5942015-01-28 10:07:51 -0800117 __be32 dest;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __be32 up;
120 char str[TIPC_MAX_LINK_NAME];
Ben Cheng655a7c02013-10-16 16:09:24 -0700121};
122struct tipc_bearer_config {
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __be32 priority;
125 __be32 disc_domain;
126 char name[TIPC_MAX_BEARER_NAME];
Ben Cheng655a7c02013-10-16 16:09:24 -0700127};
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700129struct tipc_link_config {
Tao Baod7db5942015-01-28 10:07:51 -0800130 __be32 value;
131 char name[TIPC_MAX_LINK_NAME];
Ben Cheng655a7c02013-10-16 16:09:24 -0700132};
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700134#define TIPC_NTQ_ALLTYPES 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700135struct tipc_name_table_query {
Tao Baod7db5942015-01-28 10:07:51 -0800136 __be32 depth;
137 __be32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __be32 lowbound;
140 __be32 upbound;
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
142#define TIPC_CFG_TLV_ERROR "\x80"
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700144#define TIPC_CFG_NOT_NET_ADMIN "\x81"
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define TIPC_CFG_NOT_ZONE_MSTR "\x82"
146#define TIPC_CFG_NO_REMOTE "\x83"
147#define TIPC_CFG_NOT_SUPPORTED "\x84"
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700149#define TIPC_CFG_INVALID_VALUE "\x85"
Ben Cheng655a7c02013-10-16 16:09:24 -0700150struct tlv_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800151 __be16 tlv_len;
152 __be16 tlv_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700154};
Ben Cheng655a7c02013-10-16 16:09:24 -0700155#define TLV_ALIGNTO 4
Tao Baod7db5942015-01-28 10:07:51 -0800156#define TLV_ALIGN(datalen) (((datalen) + (TLV_ALIGNTO - 1)) & ~(TLV_ALIGNTO - 1))
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen))
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700159#define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen)))
Tao Baod7db5942015-01-28 10:07:51 -0800160#define TLV_DATA(tlv) ((void *) ((char *) (tlv) + TLV_LENGTH(0)))
Ben Cheng655a7c02013-10-16 16:09:24 -0700161struct tlv_list_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800162 struct tlv_desc * tlv_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 tlv_space;
Ben Cheng655a7c02013-10-16 16:09:24 -0700165};
166#define TIPC_GENL_NAME "TIPC"
167#define TIPC_GENL_VERSION 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700169#define TIPC_GENL_CMD 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -0700170struct tipc_genlmsghdr {
Tao Baod7db5942015-01-28 10:07:51 -0800171 __u32 dest;
172 __u16 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u16 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700175};
176#define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
177struct tipc_cfg_msg_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __be32 tcm_len;
180 __be16 tcm_type;
181 __be16 tcm_flags;
182 char tcm_reserved[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700184};
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define TCM_F_REQUEST 0x1
186#define TCM_F_MORE 0x2
Tao Baod7db5942015-01-28 10:07:51 -0800187#define TCM_ALIGN(datalen) (((datalen) + 3) & ~3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700189#define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen)
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen)))
Tao Baod7db5942015-01-28 10:07:51 -0800191#define TCM_DATA(tcm_hdr) ((void *) ((char *) (tcm_hdr) + TCM_LENGTH(0)))
Ben Cheng655a7c02013-10-16 16:09:24 -0700192#endif
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */