1/****************************************************************************
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_H_
20#define _LINUX_TIPC_H_
21#include <linux/types.h>
22struct tipc_portid {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 __u32 ref;
25 __u32 node;
26};
27struct tipc_name {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __u32 type;
30 __u32 instance;
31};
32struct tipc_name_seq {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __u32 type;
35 __u32 lower;
36 __u32 upper;
37};
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define TIPC_CFG_SRV 0
40#define TIPC_TOP_SRV 1
41#define TIPC_RESERVED_TYPES 64
42#define TIPC_ZONE_SCOPE 1
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define TIPC_CLUSTER_SCOPE 2
45#define TIPC_NODE_SCOPE 3
46#define TIPC_MAX_USER_MSG_SIZE 66000U
47#define TIPC_LOW_IMPORTANCE 0
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define TIPC_MEDIUM_IMPORTANCE 1
50#define TIPC_HIGH_IMPORTANCE 2
51#define TIPC_CRITICAL_IMPORTANCE 3
52#define TIPC_OK 0
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define TIPC_ERR_NO_NAME 1
55#define TIPC_ERR_NO_PORT 2
56#define TIPC_ERR_NO_NODE 3
57#define TIPC_ERR_OVERLOAD 4
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define TIPC_CONN_SHUTDOWN 5
60#define TIPC_SUB_PORTS 0x01
61#define TIPC_SUB_SERVICE 0x02
62#define TIPC_SUB_CANCEL 0x04
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define TIPC_WAIT_FOREVER (~0)
65struct tipc_subscr {
66 struct tipc_name_seq seq;
67 __u32 timeout;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __u32 filter;
70 char usr_handle[8];
71};
72#define TIPC_PUBLISHED 1
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define TIPC_WITHDRAWN 2
75#define TIPC_SUBSCR_TIMEOUT 3
76struct tipc_event {
77 __u32 event;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __u32 found_lower;
80 __u32 found_upper;
81 struct tipc_portid port;
82 struct tipc_subscr s;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84};
85#ifndef AF_TIPC
86#define AF_TIPC 30
87#endif
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#ifndef PF_TIPC
90#define PF_TIPC AF_TIPC
91#endif
92#ifndef SOL_TIPC
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define SOL_TIPC 271
95#endif
96#define TIPC_ADDR_NAMESEQ 1
97#define TIPC_ADDR_MCAST 1
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define TIPC_ADDR_NAME 2
100#define TIPC_ADDR_ID 3
101struct sockaddr_tipc {
102 unsigned short family;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 unsigned char addrtype;
105 signed char scope;
106 union {
107 struct tipc_portid id;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 struct tipc_name_seq nameseq;
110 struct {
111 struct tipc_name name;
112 __u32 domain;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 } name;
115 } addr;
116};
117#define TIPC_ERRINFO 1
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define TIPC_RETDATA 2
120#define TIPC_DESTNAME 3
121#define TIPC_IMPORTANCE 127
122#define TIPC_SRC_DROPPABLE 128
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define TIPC_DEST_DROPPABLE 129
125#define TIPC_CONN_TIMEOUT 130
126#define TIPC_NODE_RECVQ_DEPTH 131
127#define TIPC_SOCK_RECVQ_DEPTH 132
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#endif
130