#include <linux/types.h>#include <linux/string.h>#include <linux/kernel.h>#include <linux/sched.h>#include <linux/config.h>#include <linux/socket.h>#include <linux/sockios.h>#include <linux/errno.h>#include <linux/in.h>#include <linux/mm.h>#include <linux/inet.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/fddidevice.h>#include <linux/if_arp.h>#include <linux/trdevice.h>#include <linux/skbuff.h>#include <linux/proc_fs.h>#include <linux/stat.h>#include <linux/init.h>#include <net/ip.h>#include <net/icmp.h>#include <net/route.h>#include <net/protocol.h>#include <net/tcp.h>#include <net/sock.h>#include <net/arp.h>#include <asm/system.h>#include <asm/uaccess.h>#include <linux/netfilter_arp.h>Go to the source code of this file.
Functions | |
| u32 | arp_hash (const void *pkey, const struct net_device *dev) |
| int | arp_constructor (struct neighbour *neigh) |
| void | arp_solicit (struct neighbour *neigh, struct sk_buff *skb) |
| void | arp_error_report (struct neighbour *neigh, struct sk_buff *skb) |
| void | parp_redo (struct sk_buff *skb) |
| int | arp_mc_map (u32 addr, u8 *haddr, struct net_device *dev, int dir) |
| int | arp_filter (__u32 sip, __u32 tip, struct net_device *dev) |
| int | arp_set_predefined (int addr_hint, unsigned char *haddr, u32 paddr, struct net_device *dev) |
| int | arp_find (unsigned char *haddr, struct sk_buff *skb) |
| int | arp_bind_neighbour (struct dst_entry *dst) |
| int | arp_fwd_proxy (struct in_device *in_dev, struct rtable *rt) |
| void | arp_send (int type, int ptype, u32 dest_ip, struct net_device *dev, u32 src_ip, unsigned char *dest_hw, unsigned char *src_hw, unsigned char *target_hw) |
| int | arp_process (struct sk_buff *skb) |
| int | arp_rcv (struct sk_buff *skb, struct net_device *dev, struct packet_type *pt) |
| int | arp_req_set (struct arpreq *r, struct net_device *dev) |
| unsigned | arp_state_to_flags (struct neighbour *neigh) |
| int | arp_req_get (struct arpreq *r, struct net_device *dev) |
| int | arp_req_delete (struct arpreq *r, struct net_device *dev) |
| int | arp_ioctl (unsigned int cmd, void *arg) |
| int | arp_get_info (char *buffer, char **start, off_t offset, int length) |
| int | arp_netdev_event (struct notifier_block *this, unsigned long event, void *ptr) |
| void | arp_ifdown (struct net_device *dev) |
| void __init | arp_init (void) |
Variables | |
| neigh_ops | arp_generic_ops |
| neigh_ops | arp_hh_ops |
| neigh_ops | arp_direct_ops |
| neigh_ops | arp_broken_ops |
| neigh_table | arp_tbl |
| notifier_block | arp_netdev_notifier |
| packet_type | arp_packet_type |
|
|
Definition at line 430 of file arp.c. References __neigh_lookup_errno(), arp_tbl, clip_tbl_hook, dst_entry::dev, and dst_entry::neighbour. Referenced by ip_rt_redirect(), and rt_intern_hash().
|
|
|
Definition at line 228 of file arp.c. References arp_broken_ops, arp_direct_ops, arp_generic_ops, arp_hh_ops, arp_mc_map(), neigh_ops::connected_output, neighbour::dev, neighbour::ha, in_dev_get(), in_dev_put(), inet_addr_type(), NUD_NOARP, neighbour::nud_state, NUD_VALID, neighbour::ops, neigh_ops::output, neighbour::output, neighbour::parms, neighbour::primary_key, neigh_ops::queue_xmit, and neighbour::type.
|
|
||||||||||||
|
Definition at line 312 of file arp.c. References dst_link_failure(), and kfree_skb().
|
|
||||||||||||||||
|
Definition at line 349 of file arp.c. References ip_route_output(), ip_rt_put(), and NET_INC_STATS_BH. Referenced by arp_process().
|
|
||||||||||||
|
Definition at line 394 of file arp.c. References __neigh_lookup(), arp_set_predefined(), arp_tbl, sk_buff::dev, sk_buff::dst, inet_addr_type(), kfree_skb(), neigh_event_send(), neigh_release(), and NUD_VALID.
|
|
||||||||||||
|
Definition at line 457 of file arp.c. References in_dev_get(), IN_DEV_MEDIUM_ID, IN_DEV_PROXY_ARP, in_dev_put(), and rtable::u. Referenced by arp_process().
|
|
||||||||||||||||||||
|
Definition at line 1097 of file arp.c. Referenced by arp_init().
|
|
||||||||||||
|
Definition at line 215 of file arp.c. References net_device::ifindex, and NEIGH_HASHMASK.
|
|
|
Definition at line 1241 of file arp.c. References arp_tbl, and neigh_ifdown(). Referenced by fib_disable_ip().
|
|
|
Definition at line 1257 of file arp.c. References arp_get_info(), arp_netdev_notifier, arp_packet_type, arp_tbl, dev_add_pack(), neigh_sysctl_register(), neigh_table_init(), neigh_table::parms, and register_netdevice_notifier(). Referenced by inet_init().
|
|
||||||||||||
|
Definition at line 1029 of file arp.c. References __dev_get_by_name(), arp_req_delete(), arp_req_get(), arp_req_set(), rtnl_lock(), and rtnl_unlock(). Referenced by inet_ioctl().
|
|
||||||||||||||||||||
|
Definition at line 194 of file arp.c. References net_device::addr_len, net_device::broadcast, ip_eth_mc_map(), ip_tr_mc_map(), and net_device::type. Referenced by arp_constructor(), arp_set_predefined(), ip_mc_filter_add(), and ip_mc_filter_del().
|
|
||||||||||||||||
|
Definition at line 1217 of file arp.c. References arp_tbl, neigh_changeaddr(), and rt_cache_flush().
|
|
|
Definition at line 608 of file arp.c. References __neigh_lookup(), arp_filter(), arp_fwd_proxy(), arp_send(), arp_tbl, AX25_P_IP, sk_buff::dev, sk_buff::dst, IN_DEV_ARPFILTER, IN_DEV_FORWARD, in_dev_get(), in_dev_put(), inet_addr_type(), ip_route_input(), kfree_skb(), LOOPBACK, MULTICAST, neigh_event_ns(), neigh_release(), neigh_update(), sk_buff::nh, NUD_REACHABLE, NUD_STALE, sk_buff::pkt_type, pneigh_enqueue(), pneigh_lookup(), and sk_buff::stamp. Referenced by arp_rcv().
|
|
||||||||||||||||
|
Definition at line 853 of file arp.c. References net_device::addr_len, arp_process(), net_device::flags, kfree_skb(), NF_HOOK, sk_buff::nh, sk_buff::pkt_type, pskb_may_pull(), and skb_share_check(). Referenced by parp_redo().
|
|
||||||||||||
|
Definition at line 982 of file arp.c. References __in_dev_get(), arp_tbl, in_device::cnf, ip_route_output(), ip_rt_put(), neigh_lookup(), neigh_release(), neigh_update(), NUD_FAILED, NUD_NOARP, pneigh_delete(), ipv4_devconf::proxy_arp, and RTO_ONLINK. Referenced by arp_ioctl().
|
|
||||||||||||
|
Definition at line 962 of file arp.c. References net_device::addr_len, arp_state_to_flags(), arp_tbl, net_device::name, neigh_lookup(), neigh_release(), and net_device::type. Referenced by arp_ioctl().
|
|
||||||||||||
|
Definition at line 890 of file arp.c. References __in_dev_get(), __neigh_lookup_errno(), arp_tbl, in_device::cnf, dev_getbyhwaddr(), ip_route_output(), ip_rt_put(), neigh_release(), neigh_update(), NUD_PERMANENT, NUD_STALE, pneigh_lookup(), ipv4_devconf::proxy_arp, RTO_ONLINK, and net_device::type. Referenced by arp_ioctl().
|
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 488 of file arp.c. References net_device::addr_len, alloc_skb(), AX25_P_IP, net_device::broadcast, net_device::dev_addr, dev_queue_xmit(), net_device::flags, net_device::hard_header, net_device::hard_header_len, kfree_skb(), NF_HOOK, skb_put(), skb_reserve(), and net_device::type. Referenced by arp_process(), and arp_solicit().
|
|
||||||||||||||||||||
|
Definition at line 376 of file arp.c. References net_device::addr_len, arp_mc_map(), net_device::broadcast, and net_device::dev_addr. Referenced by arp_find().
|
|
||||||||||||
|
Definition at line 318 of file arp.c. References neigh_parms::app_probes, arp_send(), neighbour::dev, neighbour::ha, inet_addr_type(), inet_select_addr(), neighbour::lock, neigh_app_ns(), sk_buff::nh, neighbour::nud_state, NUD_VALID, neighbour::parms, neighbour::primary_key, neighbour::probes, and neigh_parms::ucast_probes.
|
|
|
Definition at line 948 of file arp.c. References NUD_PERMANENT, neighbour::nud_state, and NUD_VALID. Referenced by arp_req_get().
|
|
|
Definition at line 599 of file arp.c. References arp_rcv(), and sk_buff::dev.
|
|
|
Initial value: Definition at line 155 of file arp.c. Referenced by arp_constructor(). |
|
|
Initial value: Definition at line 147 of file arp.c. Referenced by arp_constructor(). |
|
|
Initial value: Definition at line 127 of file arp.c. Referenced by arp_constructor(). |
|
|
Initial value: Definition at line 137 of file arp.c. Referenced by arp_constructor(). |
|
|
Initial value: Definition at line 1233 of file arp.c. Referenced by arp_init(). |
|
|
Initial value: Definition at line 1251 of file arp.c. Referenced by arp_init(). |
|
|
Initial value: Definition at line 165 of file arp.c. Referenced by arp_bind_neighbour(), arp_find(), arp_ifdown(), arp_init(), arp_netdev_event(), arp_process(), arp_req_delete(), arp_req_get(), arp_req_set(), fib_detect_death(), inetdev_destroy(), and inetdev_init(). |
1.3.8