Home | History | Annotate | Download | only in linux
      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  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef __LINUX_NEIGHBOUR_H
     13 #define __LINUX_NEIGHBOUR_H
     14 
     15 #include <linux/types.h>
     16 #include <linux/netlink.h>
     17 
     18 struct ndmsg
     19 {
     20  __u8 ndm_family;
     21  __u8 ndm_pad1;
     22  __u16 ndm_pad2;
     23  __s32 ndm_ifindex;
     24  __u16 ndm_state;
     25  __u8 ndm_flags;
     26  __u8 ndm_type;
     27 };
     28 
     29 enum
     30 {
     31  NDA_UNSPEC,
     32  NDA_DST,
     33  NDA_LLADDR,
     34  NDA_CACHEINFO,
     35  NDA_PROBES,
     36  __NDA_MAX
     37 };
     38 
     39 #define NDA_MAX (__NDA_MAX - 1)
     40 
     41 #define NTF_USE 0x01
     42 #define NTF_PROXY 0x08
     43 #define NTF_ROUTER 0x80
     44 
     45 #define NUD_INCOMPLETE 0x01
     46 #define NUD_REACHABLE 0x02
     47 #define NUD_STALE 0x04
     48 #define NUD_DELAY 0x08
     49 #define NUD_PROBE 0x10
     50 #define NUD_FAILED 0x20
     51 
     52 #define NUD_NOARP 0x40
     53 #define NUD_PERMANENT 0x80
     54 #define NUD_NONE 0x00
     55 
     56 struct nda_cacheinfo
     57 {
     58  __u32 ndm_confirmed;
     59  __u32 ndm_used;
     60  __u32 ndm_updated;
     61  __u32 ndm_refcnt;
     62 };
     63 
     64 struct ndt_stats
     65 {
     66  __u64 ndts_allocs;
     67  __u64 ndts_destroys;
     68  __u64 ndts_hash_grows;
     69  __u64 ndts_res_failed;
     70  __u64 ndts_lookups;
     71  __u64 ndts_hits;
     72  __u64 ndts_rcv_probes_mcast;
     73  __u64 ndts_rcv_probes_ucast;
     74  __u64 ndts_periodic_gc_runs;
     75  __u64 ndts_forced_gc_runs;
     76 };
     77 
     78 enum {
     79  NDTPA_UNSPEC,
     80  NDTPA_IFINDEX,
     81  NDTPA_REFCNT,
     82  NDTPA_REACHABLE_TIME,
     83  NDTPA_BASE_REACHABLE_TIME,
     84  NDTPA_RETRANS_TIME,
     85  NDTPA_GC_STALETIME,
     86  NDTPA_DELAY_PROBE_TIME,
     87  NDTPA_QUEUE_LEN,
     88  NDTPA_APP_PROBES,
     89  NDTPA_UCAST_PROBES,
     90  NDTPA_MCAST_PROBES,
     91  NDTPA_ANYCAST_DELAY,
     92  NDTPA_PROXY_DELAY,
     93  NDTPA_PROXY_QLEN,
     94  NDTPA_LOCKTIME,
     95  __NDTPA_MAX
     96 };
     97 #define NDTPA_MAX (__NDTPA_MAX - 1)
     98 
     99 struct ndtmsg
    100 {
    101  __u8 ndtm_family;
    102  __u8 ndtm_pad1;
    103  __u16 ndtm_pad2;
    104 };
    105 
    106 struct ndt_config
    107 {
    108  __u16 ndtc_key_len;
    109  __u16 ndtc_entry_size;
    110  __u32 ndtc_entries;
    111  __u32 ndtc_last_flush;
    112  __u32 ndtc_last_rand;
    113  __u32 ndtc_hash_rnd;
    114  __u32 ndtc_hash_mask;
    115  __u32 ndtc_hash_chain_gc;
    116  __u32 ndtc_proxy_qlen;
    117 };
    118 
    119 enum {
    120  NDTA_UNSPEC,
    121  NDTA_NAME,
    122  NDTA_THRESH1,
    123  NDTA_THRESH2,
    124  NDTA_THRESH3,
    125  NDTA_CONFIG,
    126  NDTA_PARMS,
    127  NDTA_STATS,
    128  NDTA_GC_INTERVAL,
    129  __NDTA_MAX
    130 };
    131 #define NDTA_MAX (__NDTA_MAX - 1)
    132 
    133 #endif
    134