neighbour.h revision 05d08e9716b5974d6ed08973f44930804890b902
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_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,
47  NDA_MASTER,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  NDA_LINK_NETNSID,
50  __NDA_MAX
51};
52#define NDA_MAX (__NDA_MAX - 1)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define NTF_USE 0x01
55#define NTF_SELF 0x02
56#define NTF_MASTER 0x04
57#define NTF_PROXY 0x08
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define NTF_EXT_LEARNED 0x10
60#define NTF_ROUTER 0x80
61#define NUD_INCOMPLETE 0x01
62#define NUD_REACHABLE 0x02
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define NUD_STALE 0x04
65#define NUD_DELAY 0x08
66#define NUD_PROBE 0x10
67#define NUD_FAILED 0x20
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define NUD_NOARP 0x40
70#define NUD_PERMANENT 0x80
71#define NUD_NONE 0x00
72struct nda_cacheinfo {
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  __u32 ndm_confirmed;
75  __u32 ndm_used;
76  __u32 ndm_updated;
77  __u32 ndm_refcnt;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79};
80struct ndt_stats {
81  __u64 ndts_allocs;
82  __u64 ndts_destroys;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  __u64 ndts_hash_grows;
85  __u64 ndts_res_failed;
86  __u64 ndts_lookups;
87  __u64 ndts_hits;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __u64 ndts_rcv_probes_mcast;
90  __u64 ndts_rcv_probes_ucast;
91  __u64 ndts_periodic_gc_runs;
92  __u64 ndts_forced_gc_runs;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  __u64 ndts_table_fulls;
95};
96enum {
97  NDTPA_UNSPEC,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  NDTPA_IFINDEX,
100  NDTPA_REFCNT,
101  NDTPA_REACHABLE_TIME,
102  NDTPA_BASE_REACHABLE_TIME,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  NDTPA_RETRANS_TIME,
105  NDTPA_GC_STALETIME,
106  NDTPA_DELAY_PROBE_TIME,
107  NDTPA_QUEUE_LEN,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  NDTPA_APP_PROBES,
110  NDTPA_UCAST_PROBES,
111  NDTPA_MCAST_PROBES,
112  NDTPA_ANYCAST_DELAY,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114  NDTPA_PROXY_DELAY,
115  NDTPA_PROXY_QLEN,
116  NDTPA_LOCKTIME,
117  NDTPA_QUEUE_LENBYTES,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119  NDTPA_MCAST_REPROBES,
120  __NDTPA_MAX
121};
122#define NDTPA_MAX (__NDTPA_MAX - 1)
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124struct ndtmsg {
125  __u8 ndtm_family;
126  __u8 ndtm_pad1;
127  __u16 ndtm_pad2;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129};
130struct ndt_config {
131  __u16 ndtc_key_len;
132  __u16 ndtc_entry_size;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  __u32 ndtc_entries;
135  __u32 ndtc_last_flush;
136  __u32 ndtc_last_rand;
137  __u32 ndtc_hash_rnd;
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139  __u32 ndtc_hash_mask;
140  __u32 ndtc_hash_chain_gc;
141  __u32 ndtc_proxy_qlen;
142};
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144enum {
145  NDTA_UNSPEC,
146  NDTA_NAME,
147  NDTA_THRESH1,
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149  NDTA_THRESH2,
150  NDTA_THRESH3,
151  NDTA_CONFIG,
152  NDTA_PARMS,
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154  NDTA_STATS,
155  NDTA_GC_INTERVAL,
156  __NDTA_MAX
157};
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define NDTA_MAX (__NDTA_MAX - 1)
160#endif
161