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