blob: 2189af0a275547181788f37c0e033f4d80a1383b [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 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __LINUX_NEIGHBOUR_H
13#define __LINUX_NEIGHBOUR_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
San Mehat91638722010-04-06 18:49:49 -070015#include <linux/types.h>
16#include <linux/netlink.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080017
San Mehat91638722010-04-06 18:49:49 -070018struct ndmsg
19{
20 __u8 ndm_family;
21 __u8 ndm_pad1;
22 __u16 ndm_pad2;
23 __s32 ndm_ifindex;
24 __u16 ndm_state;
25 __u8 ndm_flags;
26 __u8 ndm_type;
27};
Ben Cheng4b29af02012-03-07 16:14:53 -080028
San Mehat91638722010-04-06 18:49:49 -070029enum
30{
31 NDA_UNSPEC,
32 NDA_DST,
33 NDA_LLADDR,
34 NDA_CACHEINFO,
35 NDA_PROBES,
36 __NDA_MAX
37};
Ben Cheng4b29af02012-03-07 16:14:53 -080038
San Mehat91638722010-04-06 18:49:49 -070039#define NDA_MAX (__NDA_MAX - 1)
Ben Cheng4b29af02012-03-07 16:14:53 -080040
San Mehat91638722010-04-06 18:49:49 -070041#define NTF_USE 0x01
42#define NTF_PROXY 0x08
43#define NTF_ROUTER 0x80
Ben Cheng4b29af02012-03-07 16:14:53 -080044
San Mehat91638722010-04-06 18:49:49 -070045#define NUD_INCOMPLETE 0x01
46#define NUD_REACHABLE 0x02
47#define NUD_STALE 0x04
48#define NUD_DELAY 0x08
49#define NUD_PROBE 0x10
50#define NUD_FAILED 0x20
Ben Cheng4b29af02012-03-07 16:14:53 -080051
San Mehat91638722010-04-06 18:49:49 -070052#define NUD_NOARP 0x40
53#define NUD_PERMANENT 0x80
54#define NUD_NONE 0x00
Ben Cheng4b29af02012-03-07 16:14:53 -080055
San Mehat91638722010-04-06 18:49:49 -070056struct nda_cacheinfo
57{
58 __u32 ndm_confirmed;
59 __u32 ndm_used;
60 __u32 ndm_updated;
61 __u32 ndm_refcnt;
62};
Ben Cheng4b29af02012-03-07 16:14:53 -080063
San Mehat91638722010-04-06 18:49:49 -070064struct ndt_stats
65{
66 __u64 ndts_allocs;
67 __u64 ndts_destroys;
68 __u64 ndts_hash_grows;
69 __u64 ndts_res_failed;
70 __u64 ndts_lookups;
71 __u64 ndts_hits;
72 __u64 ndts_rcv_probes_mcast;
73 __u64 ndts_rcv_probes_ucast;
74 __u64 ndts_periodic_gc_runs;
75 __u64 ndts_forced_gc_runs;
76};
Ben Cheng4b29af02012-03-07 16:14:53 -080077
San Mehat91638722010-04-06 18:49:49 -070078enum {
79 NDTPA_UNSPEC,
80 NDTPA_IFINDEX,
81 NDTPA_REFCNT,
82 NDTPA_REACHABLE_TIME,
83 NDTPA_BASE_REACHABLE_TIME,
84 NDTPA_RETRANS_TIME,
85 NDTPA_GC_STALETIME,
86 NDTPA_DELAY_PROBE_TIME,
87 NDTPA_QUEUE_LEN,
88 NDTPA_APP_PROBES,
89 NDTPA_UCAST_PROBES,
90 NDTPA_MCAST_PROBES,
91 NDTPA_ANYCAST_DELAY,
92 NDTPA_PROXY_DELAY,
93 NDTPA_PROXY_QLEN,
94 NDTPA_LOCKTIME,
95 __NDTPA_MAX
96};
97#define NDTPA_MAX (__NDTPA_MAX - 1)
Ben Cheng4b29af02012-03-07 16:14:53 -080098
San Mehat91638722010-04-06 18:49:49 -070099struct ndtmsg
100{
101 __u8 ndtm_family;
102 __u8 ndtm_pad1;
103 __u16 ndtm_pad2;
104};
Ben Cheng4b29af02012-03-07 16:14:53 -0800105
San Mehat91638722010-04-06 18:49:49 -0700106struct ndt_config
107{
108 __u16 ndtc_key_len;
109 __u16 ndtc_entry_size;
110 __u32 ndtc_entries;
111 __u32 ndtc_last_flush;
112 __u32 ndtc_last_rand;
113 __u32 ndtc_hash_rnd;
114 __u32 ndtc_hash_mask;
115 __u32 ndtc_hash_chain_gc;
116 __u32 ndtc_proxy_qlen;
117};
Ben Cheng4b29af02012-03-07 16:14:53 -0800118
San Mehat91638722010-04-06 18:49:49 -0700119enum {
120 NDTA_UNSPEC,
121 NDTA_NAME,
122 NDTA_THRESH1,
123 NDTA_THRESH2,
124 NDTA_THRESH3,
125 NDTA_CONFIG,
126 NDTA_PARMS,
127 NDTA_STATS,
128 NDTA_GC_INTERVAL,
129 __NDTA_MAX
130};
131#define NDTA_MAX (__NDTA_MAX - 1)
Ben Cheng4b29af02012-03-07 16:14:53 -0800132
San Mehat91638722010-04-06 18:49:49 -0700133#endif