Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
neighbour.c File Reference
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/socket.h>
#include <linux/netdevice.h>
#include <linux/proc_fs.h>
#include <linux/times.h>
#include <net/net_namespace.h>
#include <net/neighbour.h>
#include <net/dst.h>
#include <net/sock.h>
#include <net/netevent.h>
#include <net/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/random.h>
#include <linux/string.h>
#include <linux/log2.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define NEIGH_DEBUG   1
 
#define NEIGH_PRINTK(x...)   printk(x)
 
#define NEIGH_NOPRINTK(x...)   do { ; } while(0)
 
#define NEIGH_PRINTK1   NEIGH_NOPRINTK
 
#define NEIGH_PRINTK2   NEIGH_NOPRINTK
 
#define NEIGH_PRINTK1   NEIGH_PRINTK
 
#define PNEIGH_HASHMASK   0xF
 

Functions

unsigned long neigh_rand_reach_time (unsigned long base)
 
 EXPORT_SYMBOL (neigh_rand_reach_time)
 
void neigh_changeaddr (struct neigh_table *tbl, struct net_device *dev)
 
 EXPORT_SYMBOL (neigh_changeaddr)
 
int neigh_ifdown (struct neigh_table *tbl, struct net_device *dev)
 
 EXPORT_SYMBOL (neigh_ifdown)
 
struct neighbourneigh_lookup (struct neigh_table *tbl, const void *pkey, struct net_device *dev)
 
 EXPORT_SYMBOL (neigh_lookup)
 
struct neighbourneigh_lookup_nodev (struct neigh_table *tbl, struct net *net, const void *pkey)
 
 EXPORT_SYMBOL (neigh_lookup_nodev)
 
struct neighbour__neigh_create (struct neigh_table *tbl, const void *pkey, struct net_device *dev, bool want_ref)
 
 EXPORT_SYMBOL (__neigh_create)
 
struct pneigh_entry__pneigh_lookup (struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (__pneigh_lookup)
 
struct pneigh_entrypneigh_lookup (struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev, int creat)
 
 EXPORT_SYMBOL (pneigh_lookup)
 
int pneigh_delete (struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev)
 
void neigh_destroy (struct neighbour *neigh)
 
 EXPORT_SYMBOL (neigh_destroy)
 
int __neigh_event_send (struct neighbour *neigh, struct sk_buff *skb)
 
 EXPORT_SYMBOL (__neigh_event_send)
 
int neigh_update (struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags)
 
 EXPORT_SYMBOL (neigh_update)
 
struct neighbourneigh_event_ns (struct neigh_table *tbl, u8 *lladdr, void *saddr, struct net_device *dev)
 
 EXPORT_SYMBOL (neigh_event_ns)
 
int neigh_compat_output (struct neighbour *neigh, struct sk_buff *skb)
 
 EXPORT_SYMBOL (neigh_compat_output)
 
int neigh_resolve_output (struct neighbour *neigh, struct sk_buff *skb)
 
 EXPORT_SYMBOL (neigh_resolve_output)
 
int neigh_connected_output (struct neighbour *neigh, struct sk_buff *skb)
 
 EXPORT_SYMBOL (neigh_connected_output)
 
int neigh_direct_output (struct neighbour *neigh, struct sk_buff *skb)
 
 EXPORT_SYMBOL (neigh_direct_output)
 
void pneigh_enqueue (struct neigh_table *tbl, struct neigh_parms *p, struct sk_buff *skb)
 
 EXPORT_SYMBOL (pneigh_enqueue)
 
struct neigh_parmsneigh_parms_alloc (struct net_device *dev, struct neigh_table *tbl)
 
 EXPORT_SYMBOL (neigh_parms_alloc)
 
void neigh_parms_release (struct neigh_table *tbl, struct neigh_parms *parms)
 
 EXPORT_SYMBOL (neigh_parms_release)
 
void neigh_table_init (struct neigh_table *tbl)
 
 EXPORT_SYMBOL (neigh_table_init)
 
int neigh_table_clear (struct neigh_table *tbl)
 
 EXPORT_SYMBOL (neigh_table_clear)
 
void neigh_for_each (struct neigh_table *tbl, void(*cb)(struct neighbour *, void *), void *cookie)
 
 EXPORT_SYMBOL (neigh_for_each)
 
void __neigh_for_each_release (struct neigh_table *tbl, int(*cb)(struct neighbour *))
 
 EXPORT_SYMBOL (__neigh_for_each_release)
 
 subsys_initcall (neigh_init)
 

Macro Definition Documentation

#define NEIGH_DEBUG   1

Definition at line 42 of file neighbour.c.

#define NEIGH_NOPRINTK (   x...)    do { ; } while(0)

Definition at line 45 of file neighbour.c.

#define NEIGH_PRINTK (   x...)    printk(x)

Definition at line 44 of file neighbour.c.

#define NEIGH_PRINTK1   NEIGH_NOPRINTK

Definition at line 51 of file neighbour.c.

#define NEIGH_PRINTK1   NEIGH_PRINTK

Definition at line 51 of file neighbour.c.

#define NEIGH_PRINTK2   NEIGH_NOPRINTK

Definition at line 47 of file neighbour.c.

#define PNEIGH_HASHMASK   0xF

Definition at line 58 of file neighbour.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file neighbour.c.

Function Documentation

struct neighbour* __neigh_create ( struct neigh_table tbl,
const void pkey,
struct net_device dev,
bool  want_ref 
)
read

Definition at line 477 of file neighbour.c.

int __neigh_event_send ( struct neighbour neigh,
struct sk_buff skb 
)

Definition at line 974 of file neighbour.c.

void __neigh_for_each_release ( struct neigh_table tbl,
int(*)(struct neighbour *)  cb 
)

Definition at line 2366 of file neighbour.c.

struct pneigh_entry* __pneigh_lookup ( struct neigh_table tbl,
struct net net,
const void pkey,
struct net_device dev 
)
read

Definition at line 591 of file neighbour.c.

EXPORT_SYMBOL ( neigh_rand_reach_time  )
EXPORT_SYMBOL ( neigh_changeaddr  )
EXPORT_SYMBOL ( neigh_ifdown  )
EXPORT_SYMBOL ( neigh_lookup  )
EXPORT_SYMBOL ( neigh_lookup_nodev  )
EXPORT_SYMBOL ( __neigh_create  )
EXPORT_SYMBOL ( pneigh_lookup  )
EXPORT_SYMBOL ( neigh_destroy  )
EXPORT_SYMBOL ( __neigh_event_send  )
EXPORT_SYMBOL ( neigh_update  )
EXPORT_SYMBOL ( neigh_event_ns  )
EXPORT_SYMBOL ( neigh_compat_output  )
EXPORT_SYMBOL ( neigh_resolve_output  )
EXPORT_SYMBOL ( neigh_connected_output  )
EXPORT_SYMBOL ( neigh_direct_output  )
EXPORT_SYMBOL ( pneigh_enqueue  )
EXPORT_SYMBOL ( neigh_parms_alloc  )
EXPORT_SYMBOL ( neigh_parms_release  )
EXPORT_SYMBOL ( neigh_table_init  )
EXPORT_SYMBOL ( neigh_table_clear  )
EXPORT_SYMBOL ( neigh_for_each  )
EXPORT_SYMBOL ( __neigh_for_each_release  )
EXPORT_SYMBOL_GPL ( __pneigh_lookup  )
void neigh_changeaddr ( struct neigh_table tbl,
struct net_device dev 
)

Definition at line 257 of file neighbour.c.

int neigh_compat_output ( struct neighbour neigh,
struct sk_buff skb 
)

Definition at line 1279 of file neighbour.c.

int neigh_connected_output ( struct neighbour neigh,
struct sk_buff skb 
)

Definition at line 1338 of file neighbour.c.

void neigh_destroy ( struct neighbour neigh)

Definition at line 712 of file neighbour.c.

int neigh_direct_output ( struct neighbour neigh,
struct sk_buff skb 
)

Definition at line 1361 of file neighbour.c.

struct neighbour* neigh_event_ns ( struct neigh_table tbl,
u8 lladdr,
void saddr,
struct net_device dev 
)
read

Definition at line 1243 of file neighbour.c.

void neigh_for_each ( struct neigh_table tbl,
void(*)(struct neighbour *, void *)  cb,
void cookie 
)

Definition at line 2343 of file neighbour.c.

int neigh_ifdown ( struct neigh_table tbl,
struct net_device dev 
)

Definition at line 265 of file neighbour.c.

struct neighbour* neigh_lookup ( struct neigh_table tbl,
const void pkey,
struct net_device dev 
)
read

Definition at line 416 of file neighbour.c.

struct neighbour* neigh_lookup_nodev ( struct neigh_table tbl,
struct net net,
const void pkey 
)
read

Definition at line 446 of file neighbour.c.

struct neigh_parms* neigh_parms_alloc ( struct net_device dev,
struct neigh_table tbl 
)
read

Definition at line 1442 of file neighbour.c.

void neigh_parms_release ( struct neigh_table tbl,
struct neigh_parms parms 
)

Definition at line 1486 of file neighbour.c.

unsigned long neigh_rand_reach_time ( unsigned long  base)

Definition at line 124 of file neighbour.c.

int neigh_resolve_output ( struct neighbour neigh,
struct sk_buff skb 
)

Definition at line 1296 of file neighbour.c.

int neigh_table_clear ( struct neigh_table tbl)

Definition at line 1578 of file neighbour.c.

void neigh_table_init ( struct neigh_table tbl)

Definition at line 1556 of file neighbour.c.

int neigh_update ( struct neighbour neigh,
const u8 lladdr,
u8  new,
u32  flags 
)

Definition at line 1082 of file neighbour.c.

int pneigh_delete ( struct neigh_table tbl,
struct net net,
const void pkey,
struct net_device dev 
)

Definition at line 649 of file neighbour.c.

void pneigh_enqueue ( struct neigh_table tbl,
struct neigh_parms p,
struct sk_buff skb 
)

Definition at line 1401 of file neighbour.c.

struct pneigh_entry* pneigh_lookup ( struct neigh_table tbl,
struct net net,
const void pkey,
struct net_device dev,
int  creat 
)
read

Definition at line 602 of file neighbour.c.

subsys_initcall ( neigh_init  )