blob: 278f7d160c090486c0c94d8050a571b4a3464f53 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -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 *** 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>
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct ndmsg {
Tao Baod7db5942015-01-28 10:07:51 -080024 __u8 ndm_family;
25 __u8 ndm_pad1;
26 __u16 ndm_pad2;
Tao Baod7db5942015-01-28 10:07:51 -080027 __s32 ndm_ifindex;
28 __u16 ndm_state;
29 __u8 ndm_flags;
30 __u8 ndm_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32enum {
Tao Baod7db5942015-01-28 10:07:51 -080033 NDA_UNSPEC,
34 NDA_DST,
Tao Baod7db5942015-01-28 10:07:51 -080035 NDA_LLADDR,
36 NDA_CACHEINFO,
37 NDA_PROBES,
38 NDA_VLAN,
Tao Baod7db5942015-01-28 10:07:51 -080039 NDA_PORT,
40 NDA_VNI,
41 NDA_IFINDEX,
42 NDA_MASTER,
Christopher Ferris05d08e92016-02-04 13:16:38 -080043 NDA_LINK_NETNSID,
Christopher Ferris525ce912017-07-26 13:12:53 -070044 NDA_SRC_VNI,
Christopher Ferrisd842e432019-03-07 10:21:59 -080045 NDA_PROTOCOL,
Christopher Ferris8177cdf2020-08-03 11:53:55 -070046 NDA_NH_ID,
Christopher Ferris25c18d42020-10-14 17:42:58 -070047 NDA_FDB_EXT_ATTRS,
Christopher Ferrisa4792612022-01-10 13:51:15 -080048 NDA_FLAGS_EXT,
Tao Baod7db5942015-01-28 10:07:51 -080049 __NDA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51#define NDA_MAX (__NDA_MAX - 1)
Christopher Ferrisa4792612022-01-10 13:51:15 -080052#define NTF_USE (1 << 0)
53#define NTF_SELF (1 << 1)
54#define NTF_MASTER (1 << 2)
55#define NTF_PROXY (1 << 3)
56#define NTF_EXT_LEARNED (1 << 4)
57#define NTF_OFFLOADED (1 << 5)
58#define NTF_STICKY (1 << 6)
59#define NTF_ROUTER (1 << 7)
60#define NTF_EXT_MANAGED (1 << 0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070061#define NUD_INCOMPLETE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define NUD_REACHABLE 0x02
63#define NUD_STALE 0x04
64#define NUD_DELAY 0x08
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070065#define NUD_PROBE 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define NUD_FAILED 0x20
67#define NUD_NOARP 0x40
68#define NUD_PERMANENT 0x80
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070069#define NUD_NONE 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070070struct nda_cacheinfo {
Tao Baod7db5942015-01-28 10:07:51 -080071 __u32 ndm_confirmed;
72 __u32 ndm_used;
Tao Baod7db5942015-01-28 10:07:51 -080073 __u32 ndm_updated;
74 __u32 ndm_refcnt;
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76struct ndt_stats {
Tao Baod7db5942015-01-28 10:07:51 -080077 __u64 ndts_allocs;
78 __u64 ndts_destroys;
79 __u64 ndts_hash_grows;
80 __u64 ndts_res_failed;
Tao Baod7db5942015-01-28 10:07:51 -080081 __u64 ndts_lookups;
82 __u64 ndts_hits;
83 __u64 ndts_rcv_probes_mcast;
84 __u64 ndts_rcv_probes_ucast;
Tao Baod7db5942015-01-28 10:07:51 -080085 __u64 ndts_periodic_gc_runs;
86 __u64 ndts_forced_gc_runs;
Christopher Ferris05d08e92016-02-04 13:16:38 -080087 __u64 ndts_table_fulls;
Ben Cheng655a7c02013-10-16 16:09:24 -070088};
89enum {
Tao Baod7db5942015-01-28 10:07:51 -080090 NDTPA_UNSPEC,
91 NDTPA_IFINDEX,
92 NDTPA_REFCNT,
93 NDTPA_REACHABLE_TIME,
Tao Baod7db5942015-01-28 10:07:51 -080094 NDTPA_BASE_REACHABLE_TIME,
95 NDTPA_RETRANS_TIME,
96 NDTPA_GC_STALETIME,
97 NDTPA_DELAY_PROBE_TIME,
Tao Baod7db5942015-01-28 10:07:51 -080098 NDTPA_QUEUE_LEN,
99 NDTPA_APP_PROBES,
100 NDTPA_UCAST_PROBES,
101 NDTPA_MCAST_PROBES,
Tao Baod7db5942015-01-28 10:07:51 -0800102 NDTPA_ANYCAST_DELAY,
103 NDTPA_PROXY_DELAY,
104 NDTPA_PROXY_QLEN,
105 NDTPA_LOCKTIME,
Tao Baod7db5942015-01-28 10:07:51 -0800106 NDTPA_QUEUE_LENBYTES,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800107 NDTPA_MCAST_REPROBES,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700108 NDTPA_PAD,
Tao Baod7db5942015-01-28 10:07:51 -0800109 __NDTPA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700111#define NDTPA_MAX (__NDTPA_MAX - 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700112struct ndtmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800113 __u8 ndtm_family;
114 __u8 ndtm_pad1;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700115 __u16 ndtm_pad2;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700116};
Ben Cheng655a7c02013-10-16 16:09:24 -0700117struct ndt_config {
Tao Baod7db5942015-01-28 10:07:51 -0800118 __u16 ndtc_key_len;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700119 __u16 ndtc_entry_size;
Tao Baod7db5942015-01-28 10:07:51 -0800120 __u32 ndtc_entries;
121 __u32 ndtc_last_flush;
122 __u32 ndtc_last_rand;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700123 __u32 ndtc_hash_rnd;
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u32 ndtc_hash_mask;
125 __u32 ndtc_hash_chain_gc;
126 __u32 ndtc_proxy_qlen;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700127};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128enum {
Tao Baod7db5942015-01-28 10:07:51 -0800129 NDTA_UNSPEC,
130 NDTA_NAME,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700131 NDTA_THRESH1,
Tao Baod7db5942015-01-28 10:07:51 -0800132 NDTA_THRESH2,
133 NDTA_THRESH3,
134 NDTA_CONFIG,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700135 NDTA_PARMS,
Tao Baod7db5942015-01-28 10:07:51 -0800136 NDTA_STATS,
137 NDTA_GC_INTERVAL,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700138 NDTA_PAD,
Tao Baod7db5942015-01-28 10:07:51 -0800139 __NDTA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700140};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700141#define NDTA_MAX (__NDTA_MAX - 1)
Christopher Ferris25c18d42020-10-14 17:42:58 -0700142enum {
143 FDB_NOTIFY_BIT = (1 << 0),
144 FDB_NOTIFY_INACTIVE_BIT = (1 << 1)
145};
146enum {
147 NFEA_UNSPEC,
148 NFEA_ACTIVITY_NOTIFY,
149 NFEA_DONT_REFRESH,
150 __NFEA_MAX
151};
152#define NFEA_MAX (__NFEA_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700153#endif