blob: f82245384ed5efe4f8464e4f748ab4e4e037fed4 [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_NEIGHBOUR_H
20#define __LINUX_NEIGHBOUR_H
21#include <linux/types.h>
22#include <linux/netlink.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct ndmsg {
25 __u8 ndm_family;
26 __u8 ndm_pad1;
27 __u16 ndm_pad2;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __s32 ndm_ifindex;
30 __u16 ndm_state;
31 __u8 ndm_flags;
32 __u8 ndm_type;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35enum {
36 NDA_UNSPEC,
37 NDA_DST,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 NDA_LLADDR,
40 NDA_CACHEINFO,
41 NDA_PROBES,
42 NDA_VLAN,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 NDA_PORT,
45 NDA_VNI,
46 NDA_IFINDEX,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070047 NDA_MASTER,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070049 __NDA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51#define NDA_MAX (__NDA_MAX - 1)
52#define NTF_USE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070054#define NTF_PROXY 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define NTF_ROUTER 0x80
56#define NTF_SELF 0x02
57#define NTF_MASTER 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070059#define NUD_INCOMPLETE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define NUD_REACHABLE 0x02
61#define NUD_STALE 0x04
62#define NUD_DELAY 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070064#define NUD_PROBE 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define NUD_FAILED 0x20
66#define NUD_NOARP 0x40
67#define NUD_PERMANENT 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070069#define NUD_NONE 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070070struct nda_cacheinfo {
71 __u32 ndm_confirmed;
72 __u32 ndm_used;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070074 __u32 ndm_updated;
Ben Cheng655a7c02013-10-16 16:09:24 -070075 __u32 ndm_refcnt;
76};
77struct ndt_stats {
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070079 __u64 ndts_allocs;
Ben Cheng655a7c02013-10-16 16:09:24 -070080 __u64 ndts_destroys;
81 __u64 ndts_hash_grows;
82 __u64 ndts_res_failed;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070084 __u64 ndts_lookups;
Ben Cheng655a7c02013-10-16 16:09:24 -070085 __u64 ndts_hits;
86 __u64 ndts_rcv_probes_mcast;
87 __u64 ndts_rcv_probes_ucast;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070089 __u64 ndts_periodic_gc_runs;
Ben Cheng655a7c02013-10-16 16:09:24 -070090 __u64 ndts_forced_gc_runs;
91};
92enum {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070094 NDTPA_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -070095 NDTPA_IFINDEX,
96 NDTPA_REFCNT,
97 NDTPA_REACHABLE_TIME,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070099 NDTPA_BASE_REACHABLE_TIME,
Ben Cheng655a7c02013-10-16 16:09:24 -0700100 NDTPA_RETRANS_TIME,
101 NDTPA_GC_STALETIME,
102 NDTPA_DELAY_PROBE_TIME,
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700104 NDTPA_QUEUE_LEN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700105 NDTPA_APP_PROBES,
106 NDTPA_UCAST_PROBES,
107 NDTPA_MCAST_PROBES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700109 NDTPA_ANYCAST_DELAY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700110 NDTPA_PROXY_DELAY,
111 NDTPA_PROXY_QLEN,
112 NDTPA_LOCKTIME,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700114 NDTPA_QUEUE_LENBYTES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700115 __NDTPA_MAX
116};
117#define NDTPA_MAX (__NDTPA_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700119struct ndtmsg {
Ben Cheng655a7c02013-10-16 16:09:24 -0700120 __u8 ndtm_family;
121 __u8 ndtm_pad1;
122 __u16 ndtm_pad2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700124};
Ben Cheng655a7c02013-10-16 16:09:24 -0700125struct ndt_config {
126 __u16 ndtc_key_len;
127 __u16 ndtc_entry_size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700129 __u32 ndtc_entries;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130 __u32 ndtc_last_flush;
131 __u32 ndtc_last_rand;
132 __u32 ndtc_hash_rnd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700134 __u32 ndtc_hash_mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700135 __u32 ndtc_hash_chain_gc;
136 __u32 ndtc_proxy_qlen;
137};
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700139enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700140 NDTA_UNSPEC,
141 NDTA_NAME,
142 NDTA_THRESH1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700144 NDTA_THRESH2,
Ben Cheng655a7c02013-10-16 16:09:24 -0700145 NDTA_THRESH3,
146 NDTA_CONFIG,
147 NDTA_PARMS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700149 NDTA_STATS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700150 NDTA_GC_INTERVAL,
151 __NDTA_MAX
152};
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700154#define NDTA_MAX (__NDTA_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700155#endif