blob: 746c61e0c5ccd1d4931565f97a5e86f346334742 [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_H_
20#define _LINUX_TIPC_H_
21#include <linux/types.h>
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070022#include <linux/sockios.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070024struct tipc_portid {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u32 ref;
26 __u32 node;
Ben Cheng655a7c02013-10-16 16:09:24 -070027};
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 -070029struct tipc_name {
Tao Baod7db5942015-01-28 10:07:51 -080030 __u32 type;
31 __u32 instance;
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
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 -070034struct tipc_name_seq {
Tao Baod7db5942015-01-28 10:07:51 -080035 __u32 type;
36 __u32 lower;
37 __u32 upper;
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};
Christopher Ferris49f525c2016-12-12 14:55:36 -080040#define TIPC_NODE_BITS 12
41#define TIPC_CLUSTER_BITS 12
42#define TIPC_ZONE_BITS 8
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define TIPC_NODE_OFFSET 0
45#define TIPC_CLUSTER_OFFSET TIPC_NODE_BITS
46#define TIPC_ZONE_OFFSET (TIPC_CLUSTER_OFFSET + TIPC_CLUSTER_BITS)
47#define TIPC_NODE_SIZE ((1UL << TIPC_NODE_BITS) - 1)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define TIPC_CLUSTER_SIZE ((1UL << TIPC_CLUSTER_BITS) - 1)
50#define TIPC_ZONE_SIZE ((1UL << TIPC_ZONE_BITS) - 1)
51#define TIPC_NODE_MASK (TIPC_NODE_SIZE << TIPC_NODE_OFFSET)
52#define TIPC_CLUSTER_MASK (TIPC_CLUSTER_SIZE << TIPC_CLUSTER_OFFSET)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define TIPC_ZONE_MASK (TIPC_ZONE_SIZE << TIPC_ZONE_OFFSET)
55#define TIPC_ZONE_CLUSTER_MASK (TIPC_ZONE_MASK | TIPC_CLUSTER_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define TIPC_CFG_SRV 0
57#define TIPC_TOP_SRV 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080059#define TIPC_LINK_STATE 2
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define TIPC_RESERVED_TYPES 64
61#define TIPC_ZONE_SCOPE 1
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define TIPC_CLUSTER_SCOPE 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080064#define TIPC_NODE_SCOPE 3
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define TIPC_MAX_USER_MSG_SIZE 66000U
66#define TIPC_LOW_IMPORTANCE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define TIPC_MEDIUM_IMPORTANCE 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080069#define TIPC_HIGH_IMPORTANCE 2
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define TIPC_CRITICAL_IMPORTANCE 3
71#define TIPC_OK 0
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define TIPC_ERR_NO_NAME 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080074#define TIPC_ERR_NO_PORT 2
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define TIPC_ERR_NO_NODE 3
76#define TIPC_ERR_OVERLOAD 4
Ben Cheng655a7c02013-10-16 16:09:24 -070077#define TIPC_CONN_SHUTDOWN 5
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080079#define TIPC_SUB_PORTS 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define TIPC_SUB_SERVICE 0x02
81#define TIPC_SUB_CANCEL 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define TIPC_WAIT_FOREVER (~0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080084struct tipc_subscr {
Tao Baod7db5942015-01-28 10:07:51 -080085 struct tipc_name_seq seq;
86 __u32 timeout;
87 __u32 filter;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080089 char usr_handle[8];
Ben Cheng655a7c02013-10-16 16:09:24 -070090};
91#define TIPC_PUBLISHED 1
Ben Cheng655a7c02013-10-16 16:09:24 -070092#define TIPC_WITHDRAWN 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080094#define TIPC_SUBSCR_TIMEOUT 3
Ben Cheng655a7c02013-10-16 16:09:24 -070095struct tipc_event {
Tao Baod7db5942015-01-28 10:07:51 -080096 __u32 event;
97 __u32 found_lower;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080099 __u32 found_upper;
Tao Baod7db5942015-01-28 10:07:51 -0800100 struct tipc_portid port;
101 struct tipc_subscr s;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800104#ifndef AF_TIPC
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define AF_TIPC 30
106#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700107#ifndef PF_TIPC
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800109#define PF_TIPC AF_TIPC
Ben Cheng655a7c02013-10-16 16:09:24 -0700110#endif
111#ifndef SOL_TIPC
Ben Cheng655a7c02013-10-16 16:09:24 -0700112#define SOL_TIPC 271
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800114#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700115#define TIPC_ADDR_NAMESEQ 1
116#define TIPC_ADDR_MCAST 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700117#define TIPC_ADDR_NAME 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800119#define TIPC_ADDR_ID 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700120struct sockaddr_tipc {
Tao Baod7db5942015-01-28 10:07:51 -0800121 unsigned short family;
122 unsigned char addrtype;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800124 signed char scope;
Tao Baod7db5942015-01-28 10:07:51 -0800125 union {
126 struct tipc_portid id;
127 struct tipc_name_seq nameseq;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800129 struct {
Tao Baod7db5942015-01-28 10:07:51 -0800130 struct tipc_name name;
131 __u32 domain;
132 } name;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800134 } addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700135};
136#define TIPC_ERRINFO 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define TIPC_RETDATA 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800139#define TIPC_DESTNAME 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700140#define TIPC_IMPORTANCE 127
141#define TIPC_SRC_DROPPABLE 128
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define TIPC_DEST_DROPPABLE 129
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800144#define TIPC_CONN_TIMEOUT 130
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define TIPC_NODE_RECVQ_DEPTH 131
146#define TIPC_SOCK_RECVQ_DEPTH 132
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700147#define TIPC_MAX_MEDIA_NAME 16
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800149#define TIPC_MAX_IF_NAME 16
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700150#define TIPC_MAX_BEARER_NAME 32
151#define TIPC_MAX_LINK_NAME 60
152#define SIOCGETLINKNAME SIOCPROTOPRIVATE
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800154struct tipc_sioc_ln_req {
Tao Baod7db5942015-01-28 10:07:51 -0800155 __u32 peer;
156 __u32 bearer_id;
157 char linkname[TIPC_MAX_LINK_NAME];
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800159};
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#endif