1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/****************************************************************************
2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   This header was automatically generated from a Linux kernel header
5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   of the same name, to make information necessary for userspace to
6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   call into the kernel available to libc.  It contains only constants,
7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   structures, and macros generated from the original header, and thus,
8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   contains no copyrightable information.
9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   To edit the content of this header, modify the corresponding
11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   source file (e.g. under external/kernel-headers/original/) then
12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   run bionic/libc/kernel/tools/update_all.py
13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   Any manual change here will be lost the next time this script will
15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   be run. You've been warned!
16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/
19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _LINUX_TIPC_CONFIG_H_
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _LINUX_TIPC_CONFIG_H_
21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/string.h>
23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#include <linux/tipc.h>
25655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <asm/byteorder.h>
26655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <arpa/inet.h>
27655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_NOOP 0x0000
28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_GET_NODES 0x0001
30655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MEDIA_NAMES 0x0002
31655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_BEARER_NAMES 0x0003
32655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_LINKS 0x0004
33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_SHOW_NAME_TABLE 0x0005
35655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SHOW_PORTS 0x0006
36655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SHOW_LINK_STATS 0x000B
37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SHOW_STATS 0x000F
38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_GET_REMOTE_MNG 0x4003
40655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MAX_PORTS 0x4004
41655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MAX_PUBL 0x4005
42655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MAX_SUBSCR 0x4006
43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_GET_MAX_ZONES 0x4007
45655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MAX_CLUSTERS 0x4008
46655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MAX_NODES 0x4009
47655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_GET_MAX_SLAVES 0x400A
48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_GET_NETID 0x400B
50655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_ENABLE_BEARER 0x4101
51655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_DISABLE_BEARER 0x4102
52655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_LINK_TOL 0x4107
53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_SET_LINK_PRI 0x4108
55655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_LINK_WINDOW 0x4109
56655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_LOG_SIZE 0x410A
57655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_DUMP_LOG 0x410B
58655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_RESET_LINK_STATS 0x410C
60655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_NODE_ADDR 0x8001
61655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_REMOTE_MNG 0x8003
62655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_MAX_PORTS 0x8004
63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_SET_MAX_PUBL 0x8005
65655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_MAX_SUBSCR 0x8006
66655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_MAX_ZONES 0x8007
67655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_MAX_CLUSTERS 0x8008
68655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CMD_SET_MAX_NODES 0x8009
70655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_MAX_SLAVES 0x800A
71655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_SET_NETID 0x800B
72655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CMD_NOT_NET_ADMIN 0xC001
73655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_TLV_NONE 0
75655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_VOID 1
76655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_UNSIGNED 2
77655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_STRING 3
78655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_TLV_LARGE_STRING 4
80655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_ULTRA_STRING 5
81655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_ERROR_STRING 16
82655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_NET_ADDR 17
83655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_TLV_MEDIA_NAME 18
85655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_BEARER_NAME 19
86655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_LINK_NAME 20
87655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_NODE_INFO 21
88655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_TLV_LINK_INFO 22
90655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_BEARER_CONFIG 23
91655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_LINK_CONFIG 24
92655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_TLV_NAME_TBL_QUERY 25
93655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_TLV_PORT_REF 26
95655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_MIN_LINK_PRI 0
96655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_DEF_LINK_PRI 10
97655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_MAX_LINK_PRI 31
98655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_MEDIA_LINK_PRI (TIPC_MAX_LINK_PRI + 1)
100655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_MIN_LINK_TOL 50
101655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_DEF_LINK_TOL 1500
102655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_MAX_LINK_TOL 30000
103655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#if TIPC_MIN_LINK_TOL < 16
105655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#error "TIPC_MIN_LINK_TOL is too small (abort limit may be NaN)"
106655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif
107655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_MIN_LINK_WIN 16
108655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_DEF_LINK_WIN 50
11082d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define TIPC_MAX_LINK_WIN 8191
111655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tipc_node_info {
112d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 addr;
113655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 up;
115655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
116655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tipc_link_info {
117d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 dest;
118655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 up;
120d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char str[TIPC_MAX_LINK_NAME];
121655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
122655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tipc_bearer_config {
123655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 priority;
125d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 disc_domain;
126d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char name[TIPC_MAX_BEARER_NAME];
127655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
128655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferrisstruct tipc_link_config {
130d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 value;
131d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char name[TIPC_MAX_LINK_NAME];
132655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
133655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_NTQ_ALLTYPES 0x80000000
135655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tipc_name_table_query {
136d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 depth;
137d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 type;
138655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 lowbound;
140d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 upbound;
141655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
142655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CFG_TLV_ERROR "\x80"
143655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CFG_NOT_NET_ADMIN "\x81"
145655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CFG_NOT_ZONE_MSTR "\x82"
146655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CFG_NO_REMOTE "\x83"
147655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_CFG_NOT_SUPPORTED "\x84"
148655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_CFG_INVALID_VALUE "\x85"
150655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tlv_desc {
151d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be16 tlv_len;
152d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be16 tlv_type;
153655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris};
155655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TLV_ALIGNTO 4
156d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define TLV_ALIGN(datalen) (((datalen) + (TLV_ALIGNTO - 1)) & ~(TLV_ALIGNTO - 1))
157655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen))
158655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen)))
160d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define TLV_DATA(tlv) ((void *) ((char *) (tlv) + TLV_LENGTH(0)))
161655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tlv_list_desc {
162d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct tlv_desc * tlv_ptr;
163655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 tlv_space;
165655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
166655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_GENL_NAME "TIPC"
167655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_GENL_VERSION 0x1
168655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TIPC_GENL_CMD 0x1
170655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tipc_genlmsghdr {
171d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 dest;
172d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 cmd;
173655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 reserved;
175655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
176655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
177655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct tipc_cfg_msg_hdr {
178655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be32 tcm_len;
180d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be16 tcm_type;
181d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __be16 tcm_flags;
182d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char tcm_reserved[8];
183655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris};
185655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TCM_F_REQUEST 0x1
186655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TCM_F_MORE 0x2
187d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define TCM_ALIGN(datalen) (((datalen) + 3) & ~3)
188655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen)
190655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen)))
191d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define TCM_DATA(tcm_hdr) ((void *) ((char *) (tcm_hdr) + TCM_LENGTH(0)))
192655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif
193ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194