neighbour.h revision 1308ad3ab33294c3abfd96da12b6df58b381ce52
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> 23struct 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}; 32enum { 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_MAX 46}; 47#define NDA_MAX (__NDA_MAX - 1) 48#define NTF_USE 0x01 49#define NTF_SELF 0x02 50#define NTF_MASTER 0x04 51#define NTF_PROXY 0x08 52#define NTF_EXT_LEARNED 0x10 53#define NTF_OFFLOADED 0x20 54#define NTF_ROUTER 0x80 55#define NUD_INCOMPLETE 0x01 56#define NUD_REACHABLE 0x02 57#define NUD_STALE 0x04 58#define NUD_DELAY 0x08 59#define NUD_PROBE 0x10 60#define NUD_FAILED 0x20 61#define NUD_NOARP 0x40 62#define NUD_PERMANENT 0x80 63#define NUD_NONE 0x00 64struct nda_cacheinfo { 65 __u32 ndm_confirmed; 66 __u32 ndm_used; 67 __u32 ndm_updated; 68 __u32 ndm_refcnt; 69}; 70struct ndt_stats { 71 __u64 ndts_allocs; 72 __u64 ndts_destroys; 73 __u64 ndts_hash_grows; 74 __u64 ndts_res_failed; 75 __u64 ndts_lookups; 76 __u64 ndts_hits; 77 __u64 ndts_rcv_probes_mcast; 78 __u64 ndts_rcv_probes_ucast; 79 __u64 ndts_periodic_gc_runs; 80 __u64 ndts_forced_gc_runs; 81 __u64 ndts_table_fulls; 82}; 83enum { 84 NDTPA_UNSPEC, 85 NDTPA_IFINDEX, 86 NDTPA_REFCNT, 87 NDTPA_REACHABLE_TIME, 88 NDTPA_BASE_REACHABLE_TIME, 89 NDTPA_RETRANS_TIME, 90 NDTPA_GC_STALETIME, 91 NDTPA_DELAY_PROBE_TIME, 92 NDTPA_QUEUE_LEN, 93 NDTPA_APP_PROBES, 94 NDTPA_UCAST_PROBES, 95 NDTPA_MCAST_PROBES, 96 NDTPA_ANYCAST_DELAY, 97 NDTPA_PROXY_DELAY, 98 NDTPA_PROXY_QLEN, 99 NDTPA_LOCKTIME, 100 NDTPA_QUEUE_LENBYTES, 101 NDTPA_MCAST_REPROBES, 102 NDTPA_PAD, 103 __NDTPA_MAX 104}; 105#define NDTPA_MAX (__NDTPA_MAX - 1) 106struct ndtmsg { 107 __u8 ndtm_family; 108 __u8 ndtm_pad1; 109 __u16 ndtm_pad2; 110}; 111struct ndt_config { 112 __u16 ndtc_key_len; 113 __u16 ndtc_entry_size; 114 __u32 ndtc_entries; 115 __u32 ndtc_last_flush; 116 __u32 ndtc_last_rand; 117 __u32 ndtc_hash_rnd; 118 __u32 ndtc_hash_mask; 119 __u32 ndtc_hash_chain_gc; 120 __u32 ndtc_proxy_qlen; 121}; 122enum { 123 NDTA_UNSPEC, 124 NDTA_NAME, 125 NDTA_THRESH1, 126 NDTA_THRESH2, 127 NDTA_THRESH3, 128 NDTA_CONFIG, 129 NDTA_PARMS, 130 NDTA_STATS, 131 NDTA_GC_INTERVAL, 132 NDTA_PAD, 133 __NDTA_MAX 134}; 135#define NDTA_MAX (__NDTA_MAX - 1) 136#endif 137