Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
br_fdb.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/rculist.h>
#include <linux/spinlock.h>
#include <linux/times.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/jhash.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/atomic.h>
#include <asm/unaligned.h>
#include "br_private.h"

Go to the source code of this file.

Functions

int __init br_fdb_init (void)
 
void br_fdb_fini (void)
 
void br_fdb_changeaddr (struct net_bridge_port *p, const unsigned char *newaddr)
 
void br_fdb_change_mac_address (struct net_bridge *br, const u8 *newaddr)
 
void br_fdb_cleanup (unsigned long _data)
 
void br_fdb_flush (struct net_bridge *br)
 
void br_fdb_delete_by_port (struct net_bridge *br, const struct net_bridge_port *p, int do_all)
 
struct net_bridge_fdb_entry__br_fdb_get (struct net_bridge *br, const unsigned char *addr)
 
int br_fdb_fillbuf (struct net_bridge *br, void *buf, unsigned long maxnum, unsigned long skip)
 
int br_fdb_insert (struct net_bridge *br, struct net_bridge_port *source, const unsigned char *addr)
 
void br_fdb_update (struct net_bridge *br, struct net_bridge_port *source, const unsigned char *addr)
 
int br_fdb_dump (struct sk_buff *skb, struct netlink_callback *cb, struct net_device *dev, int idx)
 
int br_fdb_add (struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 nlh_flags)
 
int br_fdb_delete (struct ndmsg *ndm, struct net_device *dev, const unsigned char *addr)
 

Function Documentation

struct net_bridge_fdb_entry* __br_fdb_get ( struct net_bridge br,
const unsigned char addr 
)
read

Definition at line 233 of file br_fdb.c.

int br_fdb_add ( struct ndmsg ndm,
struct nlattr tb[],
struct net_device dev,
const unsigned char addr,
u16  nlh_flags 
)

Definition at line 611 of file br_fdb.c.

void br_fdb_change_mac_address ( struct net_bridge br,
const u8 newaddr 
)

Definition at line 130 of file br_fdb.c.

void br_fdb_changeaddr ( struct net_bridge_port p,
const unsigned char newaddr 
)

Definition at line 91 of file br_fdb.c.

void br_fdb_cleanup ( unsigned long  _data)

Definition at line 142 of file br_fdb.c.

int br_fdb_delete ( struct ndmsg ndm,
struct net_device dev,
const unsigned char addr 
)

Definition at line 658 of file br_fdb.c.

void br_fdb_delete_by_port ( struct net_bridge br,
const struct net_bridge_port p,
int  do_all 
)

Definition at line 190 of file br_fdb.c.

int br_fdb_dump ( struct sk_buff skb,
struct netlink_callback cb,
struct net_device dev,
int  idx 
)

Definition at line 538 of file br_fdb.c.

int br_fdb_fillbuf ( struct net_bridge br,
void buf,
unsigned long  maxnum,
unsigned long  skip 
)

Definition at line 278 of file br_fdb.c.

void br_fdb_fini ( void  )

Definition at line 49 of file br_fdb.c.

void br_fdb_flush ( struct net_bridge br)

Definition at line 171 of file br_fdb.c.

int __init br_fdb_init ( void  )

Definition at line 36 of file br_fdb.c.

int br_fdb_insert ( struct net_bridge br,
struct net_bridge_port source,
const unsigned char addr 
)

Definition at line 403 of file br_fdb.c.

void br_fdb_update ( struct net_bridge br,
struct net_bridge_port source,
const unsigned char addr 
)

Definition at line 414 of file br_fdb.c.