#include <asm/atomic.h>#include <linux/skbuff.h>Go to the source code of this file.
Classes | |
| struct | neigh_parms |
| struct | neigh_statistics |
| struct | neighbour |
| struct | neigh_ops |
| struct | pneigh_entry |
| struct | neigh_table |
Defines | |
| #define | NTF_PROXY 0x08 |
| #define | NTF_ROUTER 0x80 |
| #define | NUD_INCOMPLETE 0x01 |
| #define | NUD_REACHABLE 0x02 |
| #define | NUD_STALE 0x04 |
| #define | NUD_DELAY 0x08 |
| #define | NUD_PROBE 0x10 |
| #define | NUD_FAILED 0x20 |
| #define | NUD_NOARP 0x40 |
| #define | NUD_PERMANENT 0x80 |
| #define | NUD_NONE 0x00 |
| #define | NUD_IN_TIMER (NUD_INCOMPLETE|NUD_DELAY|NUD_PROBE) |
| #define | NUD_VALID (NUD_PERMANENT|NUD_NOARP|NUD_REACHABLE|NUD_PROBE|NUD_STALE|NUD_DELAY) |
| #define | NUD_CONNECTED (NUD_PERMANENT|NUD_NOARP|NUD_REACHABLE) |
| #define | NEIGH_HASHMASK 0x1F |
| #define | PNEIGH_HASHMASK 0xF |
| #define | neigh_hold(n) atomic_inc(&(n)->refcnt) |
Functions | |
| void | neigh_table_init (struct neigh_table *tbl) |
| int | neigh_table_clear (struct neigh_table *tbl) |
| neighbour * | neigh_lookup (struct neigh_table *tbl, const void *pkey, struct net_device *dev) |
| neighbour * | neigh_create (struct neigh_table *tbl, const void *pkey, struct net_device *dev) |
| void | neigh_destroy (struct neighbour *neigh) |
| int | __neigh_event_send (struct neighbour *neigh, struct sk_buff *skb) |
| int | neigh_update (struct neighbour *neigh, const u8 *lladdr, u8 new, int override, int arp) |
| void | neigh_changeaddr (struct neigh_table *tbl, struct net_device *dev) |
| int | neigh_ifdown (struct neigh_table *tbl, struct net_device *dev) |
| int | neigh_resolve_output (struct sk_buff *skb) |
| int | neigh_connected_output (struct sk_buff *skb) |
| int | neigh_compat_output (struct sk_buff *skb) |
| neighbour * | neigh_event_ns (struct neigh_table *tbl, u8 *lladdr, void *saddr, struct net_device *dev) |
| neigh_parms * | neigh_parms_alloc (struct net_device *dev, struct neigh_table *tbl) |
| void | neigh_parms_release (struct neigh_table *tbl, struct neigh_parms *parms) |
| unsigned long | neigh_rand_reach_time (unsigned long base) |
| void | pneigh_enqueue (struct neigh_table *tbl, struct neigh_parms *p, struct sk_buff *skb) |
| pneigh_entry * | pneigh_lookup (struct neigh_table *tbl, const void *key, struct net_device *dev, int creat) |
| int | pneigh_delete (struct neigh_table *tbl, const void *key, struct net_device *dev) |
| int | neigh_dump_info (struct sk_buff *skb, struct netlink_callback *cb) |
| int | neigh_add (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| int | neigh_delete (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| void | neigh_app_ns (struct neighbour *n) |
| int | neigh_sysctl_register (struct net_device *dev, struct neigh_parms *p, int p_id, int pdev_id, char *p_name) |
| void | neigh_sysctl_unregister (struct neigh_parms *p) |
| void | neigh_release (struct neighbour *neigh) |
| neighbour * | neigh_clone (struct neighbour *neigh) |
| void | neigh_confirm (struct neighbour *neigh) |
| int | neigh_is_connected (struct neighbour *neigh) |
| int | neigh_is_valid (struct neighbour *neigh) |
| int | neigh_event_send (struct neighbour *neigh, struct sk_buff *skb) |
| neighbour * | __neigh_lookup (struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) |
| neighbour * | __neigh_lookup_errno (struct neigh_table *tbl, const void *pkey, struct net_device *dev) |
|
|
Definition at line 131 of file neighbour.h. Referenced by arp_hash(), neigh_changeaddr(), neigh_dump_table(), neigh_forced_gc(), and neigh_ifdown(). |
|
|
Definition at line 229 of file neighbour.h. Referenced by __neigh_event_send(), neigh_create(), and neigh_lookup(). |
|
|
Definition at line 20 of file neighbour.h. Referenced by neigh_add(), and neigh_delete(). |
|
|
Definition at line 21 of file neighbour.h. |
|
|
Definition at line 51 of file neighbour.h. Referenced by __neigh_event_send(), neigh_event_send(), neigh_hh_init(), neigh_is_connected(), and neigh_update(). |
|
|
Definition at line 30 of file neighbour.h. Referenced by __neigh_event_send(), neigh_event_send(), and neigh_timer_handler(). |
|
|
Definition at line 32 of file neighbour.h. Referenced by __neigh_event_send(), arp_req_delete(), neigh_delete(), and neigh_timer_handler(). |
|
|
Definition at line 49 of file neighbour.h. Referenced by neigh_del_timer(), and neigh_timer_handler(). |
|
|
Definition at line 27 of file neighbour.h. Referenced by __neigh_event_send(), and neigh_forced_gc(). |
|
|
Definition at line 35 of file neighbour.h. Referenced by arp_constructor(), arp_req_delete(), neigh_ifdown(), neigh_sync(), and neigh_update(). |
|
|
Definition at line 37 of file neighbour.h. Referenced by fib_detect_death(), neigh_alloc(), and neigh_ifdown(). |
|
|
Definition at line 36 of file neighbour.h. Referenced by arp_req_set(), arp_state_to_flags(), neigh_forced_gc(), neigh_sync(), and neigh_update(). |
|
|
Definition at line 31 of file neighbour.h. Referenced by __neigh_event_send(), neigh_event_send(), and neigh_timer_handler(). |
|
|
Definition at line 28 of file neighbour.h. Referenced by arp_process(), fib_detect_death(), neigh_sync(), and neigh_timer_handler(). |
|
|
Definition at line 29 of file neighbour.h. Referenced by __neigh_event_send(), arp_process(), arp_req_set(), neigh_event_ns(), neigh_sync(), and neigh_update(). |
|
|
Definition at line 50 of file neighbour.h. Referenced by arp_constructor(), arp_find(), arp_solicit(), arp_state_to_flags(), fib_detect_death(), ip_rt_redirect(), neigh_fill_info(), neigh_ifdown(), neigh_is_valid(), neigh_sync(), neigh_timer_handler(), and neigh_update(). |
|
|
Definition at line 132 of file neighbour.h. Referenced by pneigh_delete(), pneigh_ifdown(), and pneigh_lookup(). |
|
||||||||||||
|
Definition at line 717 of file neighbour.c. References __skb_queue_tail(), __skb_unlink(), neigh_parms::app_probes, neighbour::arp_queue, neigh_parms::delay_probe_time, kfree_skb(), neighbour::lock, neigh_parms::mcast_probes, neigh_hold, NEIGH_PRINTK2, sk_buff_head::next, NUD_CONNECTED, NUD_DELAY, NUD_FAILED, NUD_INCOMPLETE, NUD_PROBE, NUD_STALE, neighbour::nud_state, neighbour::ops, neighbour::parms, neighbour::probes, neigh_parms::queue_len, neigh_parms::retrans_time, skb_queue_len(), neigh_ops::solicit, neighbour::timer, and neigh_parms::ucast_probes. Referenced by neigh_event_send().
|
|
||||||||||||||||||||
|
Definition at line 256 of file neighbour.h. References neigh_create(), and neigh_lookup(). Referenced by arp_find(), arp_process(), ndisc_get_neigh(), and neigh_event_ns().
|
|
||||||||||||||||
|
Definition at line 268 of file neighbour.h. References neigh_create(), and neigh_lookup(). Referenced by arp_bind_neighbour(), arp_req_set(), and neigh_add().
|
|
||||||||||||||||
|
Definition at line 1245 of file neighbour.c. References __neigh_lookup_errno(), dev_get_by_index(), dev_put(), neigh_lookup(), neigh_release(), neigh_tables, neigh_tbl_lock, neigh_update(), neigh_table::next, NLM_F_CREATE, NLM_F_EXCL, NLM_F_REPLACE, NLMSG_DATA, nlmsghdr::nlmsg_flags, NTF_PROXY, and pneigh_lookup().
|
|
|
Referenced by arp_solicit(). |
|
||||||||||||
|
Definition at line 173 of file neighbour.c. References neigh_table::hash_buckets, neigh_table::lock, neigh_del_timer(), NEIGH_HASHMASK, neigh_release(), and neighbour::next.
|
|
|
Definition at line 222 of file neighbour.h. References neighbour::refcnt.
|
|
|
Definition at line 951 of file neighbour.c. References __skb_pull(), sk_buff::data, sk_buff::dev, dev_queue_xmit(), sk_buff::len, sk_buff::nh, and sk_buff::protocol.
|
|
|
Definition at line 231 of file neighbour.h. References neighbour::confirmed. Referenced by dst_confirm().
|
|
|
Definition at line 1006 of file neighbour.c. References __skb_pull(), sk_buff::data, neighbour::dev, sk_buff::dst, kfree_skb(), sk_buff::len, dst_entry::neighbour, sk_buff::nh, and sk_buff::protocol.
|
|
||||||||||||||||
|
Definition at line 310 of file neighbour.c. References neigh_table::constructor, neighbour::dead, dev_hold, error, neigh_table::hash, neigh_table::hash_buckets, neigh_table::key_len, neigh_table::lock, neigh_alloc(), neigh_hold, NEIGH_PRINTK2, neigh_release(), and neighbour::next. Referenced by __neigh_lookup(), and __neigh_lookup_errno().
|
|
||||||||||||||||
|
Definition at line 1193 of file neighbour.c. References dev_get_by_index(), dev_put(), neigh_lookup(), neigh_release(), neigh_tables, neigh_tbl_lock, neigh_update(), neigh_table::next, NLMSG_DATA, NTF_PROXY, NUD_FAILED, and pneigh_delete().
|
|
|
Definition at line 461 of file neighbour.c. References neighbour::arp_queue, neighbour::dead, neigh_ops::destructor, neighbour::dev, dev_put(), neigh_table::entries, neighbour::hh, hh_cache::hh_next, neigh_table::kmem_cachep, neigh_blackhole(), neigh_del_timer(), neigh_glbl_allocs, NEIGH_PRINTK2, neighbour::ops, skb_queue_purge(), and neighbour::tbl. Referenced by neigh_release().
|
|
||||||||||||
|
Definition at line 1392 of file neighbour.c. References netlink_callback::args, sk_buff::len, neigh_dump_table(), neigh_tables, neigh_tbl_lock, neigh_table::next, netlink_callback::nlh, and NLMSG_DATA.
|
|
||||||||||||||||||||
|
Definition at line 900 of file neighbour.c. References __neigh_lookup(), net_device::addr_len, neigh_update(), and NUD_STALE. Referenced by arp_process().
|
|
||||||||||||
|
Definition at line 247 of file neighbour.h. References __neigh_event_send(), NUD_CONNECTED, NUD_DELAY, NUD_PROBE, neighbour::nud_state, and neighbour::used. Referenced by arp_find(), ip_rt_redirect(), and neigh_resolve_output().
|
|
||||||||||||
|
Definition at line 200 of file neighbour.c. References neigh_table::hash_buckets, neigh_table::lock, neigh_blackhole(), neigh_del_timer(), NEIGH_HASHMASK, NEIGH_PRINTK2, neigh_release(), neighbour::next, NUD_NOARP, NUD_NONE, NUD_VALID, neigh_table::parms, pneigh_ifdown(), pneigh_queue_purge(), neigh_table::proxy_queue, neigh_table::proxy_timer, and skb_queue_purge(). Referenced by arp_ifdown(), and neigh_table_clear().
|
|
|
Definition at line 237 of file neighbour.h. References NUD_CONNECTED, and neighbour::nud_state.
|
|
|
Definition at line 242 of file neighbour.h. References neighbour::nud_state, and NUD_VALID.
|
|
||||||||||||||||
|
Definition at line 289 of file neighbour.c. References neigh_table::hash, neigh_table::hash_buckets, neigh_table::key_len, neigh_table::lock, neigh_hold, and neighbour::next. Referenced by __neigh_lookup(), __neigh_lookup_errno(), arp_req_delete(), arp_req_get(), fib_detect_death(), neigh_add(), and neigh_delete().
|
|
||||||||||||
|
Definition at line 1086 of file neighbour.c. References neigh_table::lock, neigh_rand_reach_time(), net_device::neigh_setup, neigh_parms::next, and neigh_table::parms. Referenced by inetdev_init().
|
|
||||||||||||
|
Definition at line 1109 of file neighbour.c. References neigh_table::lock, NEIGH_PRINTK1, neigh_sysctl_unregister(), neigh_parms::next, and neigh_table::parms. Referenced by inetdev_destroy().
|
|
|
Definition at line 103 of file neighbour.c. References net_random(). Referenced by neigh_parms_alloc(), and neigh_table_init().
|
|
|
Definition at line 216 of file neighbour.h. References neigh_destroy(), and neighbour::refcnt. Referenced by arp_find(), arp_process(), arp_req_delete(), arp_req_get(), arp_req_set(), dst_destroy(), fib_detect_death(), neigh_add(), neigh_changeaddr(), neigh_create(), neigh_del_timer(), neigh_delete(), neigh_forced_gc(), neigh_ifdown(), and neigh_timer_handler().
|
|
|
Definition at line 967 of file neighbour.c. References __skb_pull(), sk_buff::data, sk_buff::dst, kfree_skb(), sk_buff::len, neigh_event_send(), neigh_hh_init(), NEIGH_PRINTK1, sk_buff::nh, and sk_buff::protocol.
|
|
||||||||||||||||||||||||
|
Referenced by arp_init(), and inetdev_init(). |
|
|
Referenced by neigh_parms_release(), and neigh_table_clear(). |
|
|
Definition at line 1167 of file neighbour.c. References neigh_table::entries, neigh_table::gc_task, neigh_table::gc_timer, neigh_ifdown(), neigh_sysctl_unregister(), neigh_tables, neigh_tbl_lock, neigh_table::next, neigh_table::parms, pneigh_queue_purge(), neigh_table::proxy_queue, and neigh_table::proxy_timer.
|
|
|
Definition at line 1132 of file neighbour.c. References neigh_parms::base_reachable_time, neigh_table::entry_size, neigh_table::gc_task, neigh_table::id, neigh_table::kmem_cachep, neigh_periodic_timer, neigh_proxy_process(), neigh_rand_reach_time(), neigh_tables, neigh_tbl_lock, neigh_table::parms, neigh_parms::reachable_time, and skb_queue_head_init(). Referenced by arp_init().
|
|
||||||||||||||||||||||||
|
Definition at line 792 of file neighbour.c. References __skb_dequeue(), neigh_parms::app_probes, neighbour::arp_queue, neigh_parms::base_reachable_time, neighbour::confirmed, neighbour::dev, neighbour::ha, neighbour::lock, neigh_connect(), neigh_del_timer(), neigh_suspect(), neigh_sync(), neigh_update_hhs(), NUD_CONNECTED, NUD_NOARP, NUD_PERMANENT, NUD_STALE, neighbour::nud_state, NUD_VALID, neighbour::parms, skb_queue_purge(), and neighbour::updated. Referenced by arp_process(), arp_req_delete(), arp_req_set(), neigh_add(), neigh_delete(), and neigh_event_ns().
|
|
||||||||||||||||
|
Definition at line 409 of file neighbour.c. References neigh_table::key_len, neigh_table::lock, pneigh_entry::next, neigh_table::pdestructor, neigh_table::phash_buckets, and PNEIGH_HASHMASK. Referenced by arp_req_delete(), and neigh_delete().
|
|
||||||||||||||||
|
Definition at line 1058 of file neighbour.c. References __skb_queue_tail(), sk_buff::dev, dev_hold, sk_buff::dst, dst_release(), kfree_skb(), sk_buff_head::lock, net_random(), neigh_parms::proxy_delay, neigh_parms::proxy_qlen, neigh_table::proxy_queue, neigh_table::proxy_timer, sk_buff_head::qlen, and sk_buff::stamp. Referenced by arp_process().
|
|
||||||||||||||||||||
|
Definition at line 363 of file neighbour.c. References neigh_table::key_len, neigh_table::lock, pneigh_entry::next, neigh_table::pconstructor, neigh_table::phash_buckets, and PNEIGH_HASHMASK. Referenced by arp_process(), arp_req_set(), and neigh_add().
|
1.3.8