blob: a59e69c73168b1a1e2838619edf3821551d110c9 [file] [log] [blame]
San Mehat91638722010-04-06 18:49:49 -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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
San Mehat91638722010-04-06 18:49:49 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_NEIGHBOUR_H
20#define __LINUX_NEIGHBOUR_H
San Mehat91638722010-04-06 18:49:49 -070021#include <linux/types.h>
22#include <linux/netlink.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070024struct ndmsg
25{
26 __u8 ndm_family;
27 __u8 ndm_pad1;
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070029 __u16 ndm_pad2;
30 __s32 ndm_ifindex;
31 __u16 ndm_state;
32 __u8 ndm_flags;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070034 __u8 ndm_type;
35};
San Mehat91638722010-04-06 18:49:49 -070036enum
37{
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070039 NDA_UNSPEC,
40 NDA_DST,
41 NDA_LLADDR,
42 NDA_CACHEINFO,
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070044 NDA_PROBES,
45 __NDA_MAX
46};
San Mehat91638722010-04-06 18:49:49 -070047#define NDA_MAX (__NDA_MAX - 1)
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070049#define NTF_USE 0x01
Elliott Hughesc95eb572013-01-29 18:15:55 -080050#define NTF_PROXY 0x08
San Mehat91638722010-04-06 18:49:49 -070051#define NTF_ROUTER 0x80
San Mehat91638722010-04-06 18:49:49 -070052#define NUD_INCOMPLETE 0x01
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070054#define NUD_REACHABLE 0x02
55#define NUD_STALE 0x04
56#define NUD_DELAY 0x08
57#define NUD_PROBE 0x10
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070059#define NUD_FAILED 0x20
San Mehat91638722010-04-06 18:49:49 -070060#define NUD_NOARP 0x40
61#define NUD_PERMANENT 0x80
62#define NUD_NONE 0x00
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070064struct nda_cacheinfo
65{
66 __u32 ndm_confirmed;
67 __u32 ndm_used;
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070069 __u32 ndm_updated;
70 __u32 ndm_refcnt;
71};
San Mehat91638722010-04-06 18:49:49 -070072struct ndt_stats
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070074{
75 __u64 ndts_allocs;
76 __u64 ndts_destroys;
77 __u64 ndts_hash_grows;
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070079 __u64 ndts_res_failed;
80 __u64 ndts_lookups;
81 __u64 ndts_hits;
82 __u64 ndts_rcv_probes_mcast;
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070084 __u64 ndts_rcv_probes_ucast;
85 __u64 ndts_periodic_gc_runs;
86 __u64 ndts_forced_gc_runs;
87};
Ben Cheng654325d2012-03-07 21:13:49 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070089enum {
90 NDTPA_UNSPEC,
91 NDTPA_IFINDEX,
92 NDTPA_REFCNT,
Ben Cheng654325d2012-03-07 21:13:49 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070094 NDTPA_REACHABLE_TIME,
95 NDTPA_BASE_REACHABLE_TIME,
96 NDTPA_RETRANS_TIME,
97 NDTPA_GC_STALETIME,
Ben Cheng654325d2012-03-07 21:13:49 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -070099 NDTPA_DELAY_PROBE_TIME,
100 NDTPA_QUEUE_LEN,
101 NDTPA_APP_PROBES,
102 NDTPA_UCAST_PROBES,
Ben Cheng654325d2012-03-07 21:13:49 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700104 NDTPA_MCAST_PROBES,
105 NDTPA_ANYCAST_DELAY,
106 NDTPA_PROXY_DELAY,
107 NDTPA_PROXY_QLEN,
Ben Cheng654325d2012-03-07 21:13:49 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700109 NDTPA_LOCKTIME,
110 __NDTPA_MAX
111};
112#define NDTPA_MAX (__NDTPA_MAX - 1)
Ben Cheng654325d2012-03-07 21:13:49 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700114struct ndtmsg
115{
116 __u8 ndtm_family;
117 __u8 ndtm_pad1;
Ben Cheng654325d2012-03-07 21:13:49 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700119 __u16 ndtm_pad2;
120};
San Mehat91638722010-04-06 18:49:49 -0700121struct ndt_config
122{
Ben Cheng654325d2012-03-07 21:13:49 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700124 __u16 ndtc_key_len;
125 __u16 ndtc_entry_size;
126 __u32 ndtc_entries;
127 __u32 ndtc_last_flush;
Ben Cheng654325d2012-03-07 21:13:49 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700129 __u32 ndtc_last_rand;
130 __u32 ndtc_hash_rnd;
131 __u32 ndtc_hash_mask;
132 __u32 ndtc_hash_chain_gc;
Ben Cheng654325d2012-03-07 21:13:49 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700134 __u32 ndtc_proxy_qlen;
135};
San Mehat91638722010-04-06 18:49:49 -0700136enum {
137 NDTA_UNSPEC,
Ben Cheng654325d2012-03-07 21:13:49 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700139 NDTA_NAME,
140 NDTA_THRESH1,
141 NDTA_THRESH2,
142 NDTA_THRESH3,
Ben Cheng654325d2012-03-07 21:13:49 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700144 NDTA_CONFIG,
145 NDTA_PARMS,
146 NDTA_STATS,
147 NDTA_GC_INTERVAL,
Ben Cheng654325d2012-03-07 21:13:49 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
San Mehat91638722010-04-06 18:49:49 -0700149 __NDTA_MAX
150};
151#define NDTA_MAX (__NDTA_MAX - 1)
San Mehat91638722010-04-06 18:49:49 -0700152#endif
Ben Cheng654325d2012-03-07 21:13:49 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */