1 /**************************************************************************** 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> 23 struct ndmsg { 24 __u8 ndm_family; 25 __u8 ndm_pad1; 26 __u16 ndm_pad2; 27 __s32 ndm_ifindex; 28 __u16 ndm_state; 29 __u8 ndm_flags; 30 __u8 ndm_type; 31 }; 32 enum { 33 NDA_UNSPEC, 34 NDA_DST, 35 NDA_LLADDR, 36 NDA_CACHEINFO, 37 NDA_PROBES, 38 NDA_VLAN, 39 NDA_PORT, 40 NDA_VNI, 41 NDA_IFINDEX, 42 NDA_MASTER, 43 NDA_LINK_NETNSID, 44 NDA_SRC_VNI, 45 NDA_PROTOCOL, 46 NDA_NH_ID, 47 NDA_FDB_EXT_ATTRS, 48 NDA_FLAGS_EXT, 49 NDA_NDM_STATE_MASK, 50 NDA_NDM_FLAGS_MASK, 51 __NDA_MAX 52 }; 53 #define NDA_MAX (__NDA_MAX - 1) 54 #define NTF_USE (1 << 0) 55 #define NTF_SELF (1 << 1) 56 #define NTF_MASTER (1 << 2) 57 #define NTF_PROXY (1 << 3) 58 #define NTF_EXT_LEARNED (1 << 4) 59 #define NTF_OFFLOADED (1 << 5) 60 #define NTF_STICKY (1 << 6) 61 #define NTF_ROUTER (1 << 7) 62 #define NTF_EXT_MANAGED (1 << 0) 63 #define NTF_EXT_LOCKED (1 << 1) 64 #define NUD_INCOMPLETE 0x01 65 #define NUD_REACHABLE 0x02 66 #define NUD_STALE 0x04 67 #define NUD_DELAY 0x08 68 #define NUD_PROBE 0x10 69 #define NUD_FAILED 0x20 70 #define NUD_NOARP 0x40 71 #define NUD_PERMANENT 0x80 72 #define NUD_NONE 0x00 73 struct nda_cacheinfo { 74 __u32 ndm_confirmed; 75 __u32 ndm_used; 76 __u32 ndm_updated; 77 __u32 ndm_refcnt; 78 }; 79 struct ndt_stats { 80 __u64 ndts_allocs; 81 __u64 ndts_destroys; 82 __u64 ndts_hash_grows; 83 __u64 ndts_res_failed; 84 __u64 ndts_lookups; 85 __u64 ndts_hits; 86 __u64 ndts_rcv_probes_mcast; 87 __u64 ndts_rcv_probes_ucast; 88 __u64 ndts_periodic_gc_runs; 89 __u64 ndts_forced_gc_runs; 90 __u64 ndts_table_fulls; 91 }; 92 enum { 93 NDTPA_UNSPEC, 94 NDTPA_IFINDEX, 95 NDTPA_REFCNT, 96 NDTPA_REACHABLE_TIME, 97 NDTPA_BASE_REACHABLE_TIME, 98 NDTPA_RETRANS_TIME, 99 NDTPA_GC_STALETIME, 100 NDTPA_DELAY_PROBE_TIME, 101 NDTPA_QUEUE_LEN, 102 NDTPA_APP_PROBES, 103 NDTPA_UCAST_PROBES, 104 NDTPA_MCAST_PROBES, 105 NDTPA_ANYCAST_DELAY, 106 NDTPA_PROXY_DELAY, 107 NDTPA_PROXY_QLEN, 108 NDTPA_LOCKTIME, 109 NDTPA_QUEUE_LENBYTES, 110 NDTPA_MCAST_REPROBES, 111 NDTPA_PAD, 112 NDTPA_INTERVAL_PROBE_TIME_MS, 113 __NDTPA_MAX 114 }; 115 #define NDTPA_MAX (__NDTPA_MAX - 1) 116 struct ndtmsg { 117 __u8 ndtm_family; 118 __u8 ndtm_pad1; 119 __u16 ndtm_pad2; 120 }; 121 struct ndt_config { 122 __u16 ndtc_key_len; 123 __u16 ndtc_entry_size; 124 __u32 ndtc_entries; 125 __u32 ndtc_last_flush; 126 __u32 ndtc_last_rand; 127 __u32 ndtc_hash_rnd; 128 __u32 ndtc_hash_mask; 129 __u32 ndtc_hash_chain_gc; 130 __u32 ndtc_proxy_qlen; 131 }; 132 enum { 133 NDTA_UNSPEC, 134 NDTA_NAME, 135 NDTA_THRESH1, 136 NDTA_THRESH2, 137 NDTA_THRESH3, 138 NDTA_CONFIG, 139 NDTA_PARMS, 140 NDTA_STATS, 141 NDTA_GC_INTERVAL, 142 NDTA_PAD, 143 __NDTA_MAX 144 }; 145 #define NDTA_MAX (__NDTA_MAX - 1) 146 enum { 147 FDB_NOTIFY_BIT = (1 << 0), 148 FDB_NOTIFY_INACTIVE_BIT = (1 << 1) 149 }; 150 enum { 151 NFEA_UNSPEC, 152 NFEA_ACTIVITY_NOTIFY, 153 NFEA_DONT_REFRESH, 154 __NFEA_MAX 155 }; 156 #define NFEA_MAX (__NFEA_MAX - 1) 157 #endif 158