Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
arp.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/capability.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/inetdevice.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/fddidevice.h>
#include <linux/if_arp.h>
#include <linux/skbuff.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/stat.h>
#include <linux/init.h>
#include <linux/net.h>
#include <linux/rcupdate.h>
#include <linux/slab.h>
#include <net/net_namespace.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 <net/ax25.h>
#include <net/netrom.h>
#include <linux/uaccess.h>
#include <linux/netfilter_arp.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

 EXPORT_SYMBOL (arp_tbl)
 
int arp_mc_map (__be32 addr, u8 *haddr, struct net_device *dev, int dir)
 
int arp_find (unsigned char *haddr, struct sk_buff *skb)
 
 EXPORT_SYMBOL (arp_find)
 
struct sk_buffarp_create (int type, int ptype, __be32 dest_ip, struct net_device *dev, __be32 src_ip, const unsigned char *dest_hw, const unsigned char *src_hw, const unsigned char *target_hw)
 
 EXPORT_SYMBOL (arp_create)
 
void arp_xmit (struct sk_buff *skb)
 
 EXPORT_SYMBOL (arp_xmit)
 
void arp_send (int type, int ptype, __be32 dest_ip, struct net_device *dev, __be32 src_ip, const unsigned char *dest_hw, const unsigned char *src_hw, const unsigned char *target_hw)
 
 EXPORT_SYMBOL (arp_send)
 
int arp_invalidate (struct net_device *dev, __be32 ip)
 
 EXPORT_SYMBOL (arp_invalidate)
 
int arp_ioctl (struct net *net, unsigned int cmd, void __user *arg)
 
void arp_ifdown (struct net_device *dev)
 
void __init arp_init (void)
 

Variables

struct neigh_table arp_tbl
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 76 of file arp.c.

Function Documentation

struct sk_buff* arp_create ( int  type,
int  ptype,
__be32  dest_ip,
struct net_device dev,
__be32  src_ip,
const unsigned char dest_hw,
const unsigned char src_hw,
const unsigned char target_hw 
)
read

Definition at line 575 of file arp.c.

int arp_find ( unsigned char haddr,
struct sk_buff skb 
)

Definition at line 466 of file arp.c.

void arp_ifdown ( struct net_device dev)

Definition at line 1245 of file arp.c.

void __init arp_init ( void  )

Definition at line 1262 of file arp.c.

int arp_invalidate ( struct net_device dev,
__be32  ip 
)

Definition at line 1098 of file arp.c.

int arp_ioctl ( struct net net,
unsigned int  cmd,
void __user arg 
)

Definition at line 1155 of file arp.c.

int arp_mc_map ( __be32  addr,
u8 haddr,
struct net_device dev,
int  dir 
)

Definition at line 189 of file arp.c.

void arp_send ( int  type,
int  ptype,
__be32  dest_ip,
struct net_device dev,
__be32  src_ip,
const unsigned char dest_hw,
const unsigned char src_hw,
const unsigned char target_hw 
)

Definition at line 687 of file arp.c.

void arp_xmit ( struct sk_buff skb)

Definition at line 677 of file arp.c.

EXPORT_SYMBOL ( arp_tbl  )
EXPORT_SYMBOL ( arp_find  )
EXPORT_SYMBOL ( arp_create  )
EXPORT_SYMBOL ( arp_xmit  )
EXPORT_SYMBOL ( arp_send  )
EXPORT_SYMBOL ( arp_invalidate  )

Variable Documentation

Initial value:
= {
.family = AF_INET,
.key_len = 4,
.hash = arp_hash,
.constructor = arp_constructor,
.proxy_redo = parp_redo,
.id = "arp_cache",
.parms = {
.tbl = &arp_tbl,
.base_reachable_time = 30 * HZ,
.retrans_time = 1 * HZ,
.gc_staletime = 60 * HZ,
.reachable_time = 30 * HZ,
.delay_probe_time = 5 * HZ,
.queue_len_bytes = 64*1024,
.ucast_probes = 3,
.mcast_probes = 3,
.anycast_delay = 1 * HZ,
.proxy_delay = (8 * HZ) / 10,
.proxy_qlen = 64,
.locktime = 1 * HZ,
},
.gc_interval = 30 * HZ,
.gc_thresh1 = 128,
.gc_thresh2 = 512,
.gc_thresh3 = 1024,
}

Definition at line 160 of file arp.c.