blob: 632921154fd62084b052847bb6413ca8bf8f8458 [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,
Tao Baod7db5942015-01-28 10:07:51 -080045 __NDA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#define NDA_MAX (__NDA_MAX - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -080048#define NTF_USE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define NTF_SELF 0x02
50#define NTF_MASTER 0x04
Christopher Ferris05d08e92016-02-04 13:16:38 -080051#define NTF_PROXY 0x08
Christopher Ferris05d08e92016-02-04 13:16:38 -080052#define NTF_EXT_LEARNED 0x10
Christopher Ferris1308ad32017-11-14 17:32:13 -080053#define NTF_OFFLOADED 0x20
Christopher Ferris86a48372019-01-10 14:14:59 -080054#define NTF_STICKY 0x40
Christopher Ferris05d08e92016-02-04 13:16:38 -080055#define NTF_ROUTER 0x80
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070056#define NUD_INCOMPLETE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define NUD_REACHABLE 0x02
58#define NUD_STALE 0x04
59#define NUD_DELAY 0x08
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070060#define NUD_PROBE 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define NUD_FAILED 0x20
62#define NUD_NOARP 0x40
63#define NUD_PERMANENT 0x80
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070064#define NUD_NONE 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070065struct nda_cacheinfo {
Tao Baod7db5942015-01-28 10:07:51 -080066 __u32 ndm_confirmed;
67 __u32 ndm_used;
Tao Baod7db5942015-01-28 10:07:51 -080068 __u32 ndm_updated;
69 __u32 ndm_refcnt;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71struct ndt_stats {
Tao Baod7db5942015-01-28 10:07:51 -080072 __u64 ndts_allocs;
73 __u64 ndts_destroys;
74 __u64 ndts_hash_grows;
75 __u64 ndts_res_failed;
Tao Baod7db5942015-01-28 10:07:51 -080076 __u64 ndts_lookups;
77 __u64 ndts_hits;
78 __u64 ndts_rcv_probes_mcast;
79 __u64 ndts_rcv_probes_ucast;
Tao Baod7db5942015-01-28 10:07:51 -080080 __u64 ndts_periodic_gc_runs;
81 __u64 ndts_forced_gc_runs;
Christopher Ferris05d08e92016-02-04 13:16:38 -080082 __u64 ndts_table_fulls;
Ben Cheng655a7c02013-10-16 16:09:24 -070083};
84enum {
Tao Baod7db5942015-01-28 10:07:51 -080085 NDTPA_UNSPEC,
86 NDTPA_IFINDEX,
87 NDTPA_REFCNT,
88 NDTPA_REACHABLE_TIME,
Tao Baod7db5942015-01-28 10:07:51 -080089 NDTPA_BASE_REACHABLE_TIME,
90 NDTPA_RETRANS_TIME,
91 NDTPA_GC_STALETIME,
92 NDTPA_DELAY_PROBE_TIME,
Tao Baod7db5942015-01-28 10:07:51 -080093 NDTPA_QUEUE_LEN,
94 NDTPA_APP_PROBES,
95 NDTPA_UCAST_PROBES,
96 NDTPA_MCAST_PROBES,
Tao Baod7db5942015-01-28 10:07:51 -080097 NDTPA_ANYCAST_DELAY,
98 NDTPA_PROXY_DELAY,
99 NDTPA_PROXY_QLEN,
100 NDTPA_LOCKTIME,
Tao Baod7db5942015-01-28 10:07:51 -0800101 NDTPA_QUEUE_LENBYTES,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800102 NDTPA_MCAST_REPROBES,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700103 NDTPA_PAD,
Tao Baod7db5942015-01-28 10:07:51 -0800104 __NDTPA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700105};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700106#define NDTPA_MAX (__NDTPA_MAX - 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700107struct ndtmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800108 __u8 ndtm_family;
109 __u8 ndtm_pad1;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700110 __u16 ndtm_pad2;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700111};
Ben Cheng655a7c02013-10-16 16:09:24 -0700112struct ndt_config {
Tao Baod7db5942015-01-28 10:07:51 -0800113 __u16 ndtc_key_len;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700114 __u16 ndtc_entry_size;
Tao Baod7db5942015-01-28 10:07:51 -0800115 __u32 ndtc_entries;
116 __u32 ndtc_last_flush;
117 __u32 ndtc_last_rand;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700118 __u32 ndtc_hash_rnd;
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u32 ndtc_hash_mask;
120 __u32 ndtc_hash_chain_gc;
121 __u32 ndtc_proxy_qlen;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700122};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123enum {
Tao Baod7db5942015-01-28 10:07:51 -0800124 NDTA_UNSPEC,
125 NDTA_NAME,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700126 NDTA_THRESH1,
Tao Baod7db5942015-01-28 10:07:51 -0800127 NDTA_THRESH2,
128 NDTA_THRESH3,
129 NDTA_CONFIG,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700130 NDTA_PARMS,
Tao Baod7db5942015-01-28 10:07:51 -0800131 NDTA_STATS,
132 NDTA_GC_INTERVAL,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700133 NDTA_PAD,
Tao Baod7db5942015-01-28 10:07:51 -0800134 __NDTA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700135};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700136#define NDTA_MAX (__NDTA_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#endif