1/*
2 * This header was generated from the Linux kernel headers by update_headers.py,
3 * to provide necessary information from kernel to userspace, such as constants,
4 * structures, and macros, and thus, contains no copyrightable information.
5 */
6#ifndef __LINUX_NEIGHBOUR_H
7#define __LINUX_NEIGHBOUR_H
8#include <linux/types.h>
9#include <linux/netlink.h>
10struct ndmsg {
11	__u8		ndm_family;
12	__u8		ndm_pad1;
13	__u16		ndm_pad2;
14	__s32		ndm_ifindex;
15	__u16		ndm_state;
16	__u8		ndm_flags;
17	__u8		ndm_type;
18};
19enum {
20	NDA_UNSPEC,
21	NDA_DST,
22	NDA_LLADDR,
23	NDA_CACHEINFO,
24	NDA_PROBES,
25	NDA_VLAN,
26	NDA_PORT,
27	NDA_VNI,
28	NDA_IFINDEX,
29	NDA_MASTER,
30	NDA_LINK_NETNSID,
31	NDA_SRC_VNI,
32	__NDA_MAX
33};
34#define NDA_MAX (__NDA_MAX - 1)
35#define NTF_USE		0x01
36#define NTF_SELF	0x02
37#define NTF_MASTER	0x04
38#define NTF_PROXY	0x08
39#define NTF_EXT_LEARNED	0x10
40#define NTF_OFFLOADED   0x20
41#define NTF_ROUTER	0x80
42#define NUD_INCOMPLETE	0x01
43#define NUD_REACHABLE	0x02
44#define NUD_STALE	0x04
45#define NUD_DELAY	0x08
46#define NUD_PROBE	0x10
47#define NUD_FAILED	0x20
48#define NUD_NOARP	0x40
49#define NUD_PERMANENT	0x80
50#define NUD_NONE	0x00
51struct nda_cacheinfo {
52	__u32		ndm_confirmed;
53	__u32		ndm_used;
54	__u32		ndm_updated;
55	__u32		ndm_refcnt;
56};
57struct ndt_stats {
58	__u64		ndts_allocs;
59	__u64		ndts_destroys;
60	__u64		ndts_hash_grows;
61	__u64		ndts_res_failed;
62	__u64		ndts_lookups;
63	__u64		ndts_hits;
64	__u64		ndts_rcv_probes_mcast;
65	__u64		ndts_rcv_probes_ucast;
66	__u64		ndts_periodic_gc_runs;
67	__u64		ndts_forced_gc_runs;
68	__u64		ndts_table_fulls;
69};
70enum {
71	NDTPA_UNSPEC,
72	NDTPA_IFINDEX,
73	NDTPA_REFCNT,
74	NDTPA_REACHABLE_TIME,
75	NDTPA_BASE_REACHABLE_TIME,
76	NDTPA_RETRANS_TIME,
77	NDTPA_GC_STALETIME,
78	NDTPA_DELAY_PROBE_TIME,
79	NDTPA_QUEUE_LEN,
80	NDTPA_APP_PROBES,
81	NDTPA_UCAST_PROBES,
82	NDTPA_MCAST_PROBES,
83	NDTPA_ANYCAST_DELAY,
84	NDTPA_PROXY_DELAY,
85	NDTPA_PROXY_QLEN,
86	NDTPA_LOCKTIME,
87	NDTPA_QUEUE_LENBYTES,
88	NDTPA_MCAST_REPROBES,
89	NDTPA_PAD,
90	__NDTPA_MAX
91};
92#define NDTPA_MAX (__NDTPA_MAX - 1)
93struct ndtmsg {
94	__u8		ndtm_family;
95	__u8		ndtm_pad1;
96	__u16		ndtm_pad2;
97};
98struct ndt_config {
99	__u16		ndtc_key_len;
100	__u16		ndtc_entry_size;
101	__u32		ndtc_entries;
102	__u32		ndtc_last_flush;
103	__u32		ndtc_last_rand;
104	__u32		ndtc_hash_rnd;
105	__u32		ndtc_hash_mask;
106	__u32		ndtc_hash_chain_gc;
107	__u32		ndtc_proxy_qlen;
108};
109enum {
110	NDTA_UNSPEC,
111	NDTA_NAME,
112	NDTA_THRESH1,
113	NDTA_THRESH2,
114	NDTA_THRESH3,
115	NDTA_CONFIG,
116	NDTA_PARMS,
117	NDTA_STATS,
118	NDTA_GC_INTERVAL,
119	NDTA_PAD,
120	__NDTA_MAX
121};
122#define NDTA_MAX (__NDTA_MAX - 1)
123#endif
124