blob: f8ba65528eeb89164308b66fb34afc138ba7218a [file] [log] [blame]
Christopher Ferris49f525c2016-12-12 14:55:36 -08001/****************************************************************************
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 _UAPI_LINUX_BATMAN_ADV_H_
20#define _UAPI_LINUX_BATMAN_ADV_H_
21#define BATADV_NL_NAME "batadv"
22#define BATADV_NL_MCAST_GROUP_TPMETER "tpmeter"
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080024enum batadv_tt_client_flags {
25 BATADV_TT_CLIENT_DEL = (1 << 0),
26 BATADV_TT_CLIENT_ROAM = (1 << 1),
27 BATADV_TT_CLIENT_WIFI = (1 << 4),
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 BATADV_TT_CLIENT_ISOLA = (1 << 5),
30 BATADV_TT_CLIENT_NOPURGE = (1 << 8),
31 BATADV_TT_CLIENT_NEW = (1 << 9),
32 BATADV_TT_CLIENT_PENDING = (1 << 10),
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 BATADV_TT_CLIENT_TEMP = (1 << 11),
35};
Christopher Ferris49f525c2016-12-12 14:55:36 -080036enum batadv_nl_attrs {
37 BATADV_ATTR_UNSPEC,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080039 BATADV_ATTR_VERSION,
40 BATADV_ATTR_ALGO_NAME,
Christopher Ferris49f525c2016-12-12 14:55:36 -080041 BATADV_ATTR_MESH_IFINDEX,
42 BATADV_ATTR_MESH_IFNAME,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080044 BATADV_ATTR_MESH_ADDRESS,
45 BATADV_ATTR_HARD_IFINDEX,
Christopher Ferris49f525c2016-12-12 14:55:36 -080046 BATADV_ATTR_HARD_IFNAME,
47 BATADV_ATTR_HARD_ADDRESS,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080049 BATADV_ATTR_ORIG_ADDRESS,
50 BATADV_ATTR_TPMETER_RESULT,
Christopher Ferris49f525c2016-12-12 14:55:36 -080051 BATADV_ATTR_TPMETER_TEST_TIME,
52 BATADV_ATTR_TPMETER_BYTES,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080054 BATADV_ATTR_TPMETER_COOKIE,
55 BATADV_ATTR_PAD,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080056 BATADV_ATTR_ACTIVE,
57 BATADV_ATTR_TT_ADDRESS,
Christopher Ferris49f525c2016-12-12 14:55:36 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059 BATADV_ATTR_TT_TTVN,
60 BATADV_ATTR_TT_LAST_TTVN,
61 BATADV_ATTR_TT_CRC32,
62 BATADV_ATTR_TT_VID,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 BATADV_ATTR_TT_FLAGS,
65 BATADV_ATTR_FLAG_BEST,
66 BATADV_ATTR_LAST_SEEN_MSECS,
67 BATADV_ATTR_NEIGH_ADDRESS,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 BATADV_ATTR_TQ,
70 BATADV_ATTR_THROUGHPUT,
71 BATADV_ATTR_BANDWIDTH_UP,
72 BATADV_ATTR_BANDWIDTH_DOWN,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 BATADV_ATTR_ROUTER,
75 BATADV_ATTR_BLA_OWN,
76 BATADV_ATTR_BLA_ADDRESS,
77 BATADV_ATTR_BLA_VID,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 BATADV_ATTR_BLA_BACKBONE,
80 BATADV_ATTR_BLA_CRC,
Christopher Ferris49f525c2016-12-12 14:55:36 -080081 __BATADV_ATTR_AFTER_LAST,
82 NUM_BATADV_ATTR = __BATADV_ATTR_AFTER_LAST,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080084 BATADV_ATTR_MAX = __BATADV_ATTR_AFTER_LAST - 1
85};
Christopher Ferris49f525c2016-12-12 14:55:36 -080086enum batadv_nl_commands {
87 BATADV_CMD_UNSPEC,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080089 BATADV_CMD_GET_MESH_INFO,
90 BATADV_CMD_TP_METER,
Christopher Ferris49f525c2016-12-12 14:55:36 -080091 BATADV_CMD_TP_METER_CANCEL,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080092 BATADV_CMD_GET_ROUTING_ALGOS,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 BATADV_CMD_GET_HARDIFS,
95 BATADV_CMD_GET_TRANSTABLE_LOCAL,
96 BATADV_CMD_GET_TRANSTABLE_GLOBAL,
97 BATADV_CMD_GET_ORIGINATORS,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 BATADV_CMD_GET_NEIGHBORS,
100 BATADV_CMD_GET_GATEWAYS,
101 BATADV_CMD_GET_BLA_CLAIM,
102 BATADV_CMD_GET_BLA_BACKBONE,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800104 __BATADV_CMD_AFTER_LAST,
105 BATADV_CMD_MAX = __BATADV_CMD_AFTER_LAST - 1
106};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800107enum batadv_tp_meter_reason {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800109 BATADV_TP_REASON_COMPLETE = 3,
110 BATADV_TP_REASON_CANCEL = 4,
111 BATADV_TP_REASON_DST_UNREACHABLE = 128,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800112 BATADV_TP_REASON_RESEND_LIMIT = 129,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800114 BATADV_TP_REASON_ALREADY_ONGOING = 130,
115 BATADV_TP_REASON_MEMORY_ERROR = 131,
116 BATADV_TP_REASON_CANT_SEND = 132,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800117 BATADV_TP_REASON_TOO_MANY = 133,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800119};
120#endif