blob: 65568f987870631384f20a94236e164772d98ec9 [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"
Christopher Ferris6a9755d2017-01-13 14:09:31 -080023enum batadv_tt_client_flags {
24 BATADV_TT_CLIENT_DEL = (1 << 0),
25 BATADV_TT_CLIENT_ROAM = (1 << 1),
26 BATADV_TT_CLIENT_WIFI = (1 << 4),
Christopher Ferris6a9755d2017-01-13 14:09:31 -080027 BATADV_TT_CLIENT_ISOLA = (1 << 5),
28 BATADV_TT_CLIENT_NOPURGE = (1 << 8),
29 BATADV_TT_CLIENT_NEW = (1 << 9),
30 BATADV_TT_CLIENT_PENDING = (1 << 10),
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031 BATADV_TT_CLIENT_TEMP = (1 << 11),
32};
Christopher Ferris49f525c2016-12-12 14:55:36 -080033enum batadv_nl_attrs {
34 BATADV_ATTR_UNSPEC,
35 BATADV_ATTR_VERSION,
36 BATADV_ATTR_ALGO_NAME,
Christopher Ferris49f525c2016-12-12 14:55:36 -080037 BATADV_ATTR_MESH_IFINDEX,
38 BATADV_ATTR_MESH_IFNAME,
39 BATADV_ATTR_MESH_ADDRESS,
40 BATADV_ATTR_HARD_IFINDEX,
Christopher Ferris49f525c2016-12-12 14:55:36 -080041 BATADV_ATTR_HARD_IFNAME,
42 BATADV_ATTR_HARD_ADDRESS,
43 BATADV_ATTR_ORIG_ADDRESS,
44 BATADV_ATTR_TPMETER_RESULT,
Christopher Ferris49f525c2016-12-12 14:55:36 -080045 BATADV_ATTR_TPMETER_TEST_TIME,
46 BATADV_ATTR_TPMETER_BYTES,
47 BATADV_ATTR_TPMETER_COOKIE,
48 BATADV_ATTR_PAD,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080049 BATADV_ATTR_ACTIVE,
50 BATADV_ATTR_TT_ADDRESS,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051 BATADV_ATTR_TT_TTVN,
52 BATADV_ATTR_TT_LAST_TTVN,
53 BATADV_ATTR_TT_CRC32,
54 BATADV_ATTR_TT_VID,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080055 BATADV_ATTR_TT_FLAGS,
56 BATADV_ATTR_FLAG_BEST,
57 BATADV_ATTR_LAST_SEEN_MSECS,
58 BATADV_ATTR_NEIGH_ADDRESS,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059 BATADV_ATTR_TQ,
60 BATADV_ATTR_THROUGHPUT,
61 BATADV_ATTR_BANDWIDTH_UP,
62 BATADV_ATTR_BANDWIDTH_DOWN,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080063 BATADV_ATTR_ROUTER,
64 BATADV_ATTR_BLA_OWN,
65 BATADV_ATTR_BLA_ADDRESS,
66 BATADV_ATTR_BLA_VID,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080067 BATADV_ATTR_BLA_BACKBONE,
68 BATADV_ATTR_BLA_CRC,
Christopher Ferris49f525c2016-12-12 14:55:36 -080069 __BATADV_ATTR_AFTER_LAST,
70 NUM_BATADV_ATTR = __BATADV_ATTR_AFTER_LAST,
71 BATADV_ATTR_MAX = __BATADV_ATTR_AFTER_LAST - 1
72};
Christopher Ferris49f525c2016-12-12 14:55:36 -080073enum batadv_nl_commands {
74 BATADV_CMD_UNSPEC,
75 BATADV_CMD_GET_MESH_INFO,
76 BATADV_CMD_TP_METER,
Christopher Ferris49f525c2016-12-12 14:55:36 -080077 BATADV_CMD_TP_METER_CANCEL,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080078 BATADV_CMD_GET_ROUTING_ALGOS,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080079 BATADV_CMD_GET_HARDIFS,
80 BATADV_CMD_GET_TRANSTABLE_LOCAL,
81 BATADV_CMD_GET_TRANSTABLE_GLOBAL,
82 BATADV_CMD_GET_ORIGINATORS,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080083 BATADV_CMD_GET_NEIGHBORS,
84 BATADV_CMD_GET_GATEWAYS,
85 BATADV_CMD_GET_BLA_CLAIM,
86 BATADV_CMD_GET_BLA_BACKBONE,
Christopher Ferris49f525c2016-12-12 14:55:36 -080087 __BATADV_CMD_AFTER_LAST,
88 BATADV_CMD_MAX = __BATADV_CMD_AFTER_LAST - 1
89};
Christopher Ferris49f525c2016-12-12 14:55:36 -080090enum batadv_tp_meter_reason {
91 BATADV_TP_REASON_COMPLETE = 3,
92 BATADV_TP_REASON_CANCEL = 4,
93 BATADV_TP_REASON_DST_UNREACHABLE = 128,
Christopher Ferris49f525c2016-12-12 14:55:36 -080094 BATADV_TP_REASON_RESEND_LIMIT = 129,
95 BATADV_TP_REASON_ALREADY_ONGOING = 130,
96 BATADV_TP_REASON_MEMORY_ERROR = 131,
97 BATADV_TP_REASON_CANT_SEND = 132,
Christopher Ferris49f525c2016-12-12 14:55:36 -080098 BATADV_TP_REASON_TOO_MANY = 133,
Christopher Ferris49f525c2016-12-12 14:55:36 -080099};
100#endif