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