Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
dev_addr_lists.c File Reference
#include <linux/netdevice.h>
#include <linux/rtnetlink.h>
#include <linux/export.h>
#include <linux/list.h>
#include <linux/proc_fs.h>

Go to the source code of this file.

Functions

int __hw_addr_add_multiple (struct netdev_hw_addr_list *to_list, struct netdev_hw_addr_list *from_list, int addr_len, unsigned char addr_type)
 
 EXPORT_SYMBOL (__hw_addr_add_multiple)
 
void __hw_addr_del_multiple (struct netdev_hw_addr_list *to_list, struct netdev_hw_addr_list *from_list, int addr_len, unsigned char addr_type)
 
 EXPORT_SYMBOL (__hw_addr_del_multiple)
 
int __hw_addr_sync (struct netdev_hw_addr_list *to_list, struct netdev_hw_addr_list *from_list, int addr_len)
 
 EXPORT_SYMBOL (__hw_addr_sync)
 
void __hw_addr_unsync (struct netdev_hw_addr_list *to_list, struct netdev_hw_addr_list *from_list, int addr_len)
 
 EXPORT_SYMBOL (__hw_addr_unsync)
 
void __hw_addr_flush (struct netdev_hw_addr_list *list)
 
 EXPORT_SYMBOL (__hw_addr_flush)
 
void __hw_addr_init (struct netdev_hw_addr_list *list)
 
 EXPORT_SYMBOL (__hw_addr_init)
 
void dev_addr_flush (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_addr_flush)
 
int dev_addr_init (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_addr_init)
 
int dev_addr_add (struct net_device *dev, const unsigned char *addr, unsigned char addr_type)
 
 EXPORT_SYMBOL (dev_addr_add)
 
int dev_addr_del (struct net_device *dev, const unsigned char *addr, unsigned char addr_type)
 
 EXPORT_SYMBOL (dev_addr_del)
 
int dev_addr_add_multiple (struct net_device *to_dev, struct net_device *from_dev, unsigned char addr_type)
 
 EXPORT_SYMBOL (dev_addr_add_multiple)
 
int dev_addr_del_multiple (struct net_device *to_dev, struct net_device *from_dev, unsigned char addr_type)
 
 EXPORT_SYMBOL (dev_addr_del_multiple)
 
int dev_uc_add_excl (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_uc_add_excl)
 
int dev_uc_add (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_uc_add)
 
int dev_uc_del (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_uc_del)
 
int dev_uc_sync (struct net_device *to, struct net_device *from)
 
 EXPORT_SYMBOL (dev_uc_sync)
 
void dev_uc_unsync (struct net_device *to, struct net_device *from)
 
 EXPORT_SYMBOL (dev_uc_unsync)
 
void dev_uc_flush (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_uc_flush)
 
void dev_uc_init (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_uc_init)
 
int dev_mc_add_excl (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_mc_add_excl)
 
int dev_mc_add (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_mc_add)
 
int dev_mc_add_global (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_mc_add_global)
 
int dev_mc_del (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_mc_del)
 
int dev_mc_del_global (struct net_device *dev, const unsigned char *addr)
 
 EXPORT_SYMBOL (dev_mc_del_global)
 
int dev_mc_sync (struct net_device *to, struct net_device *from)
 
 EXPORT_SYMBOL (dev_mc_sync)
 
void dev_mc_unsync (struct net_device *to, struct net_device *from)
 
 EXPORT_SYMBOL (dev_mc_unsync)
 
void dev_mc_flush (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_mc_flush)
 
void dev_mc_init (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_mc_init)
 
void __init dev_mcast_init (void)
 

Function Documentation

int __hw_addr_add_multiple ( struct netdev_hw_addr_list to_list,
struct netdev_hw_addr_list from_list,
int  addr_len,
unsigned char  addr_type 
)

Definition at line 115 of file dev_addr_lists.c.

void __hw_addr_del_multiple ( struct netdev_hw_addr_list to_list,
struct netdev_hw_addr_list from_list,
int  addr_len,
unsigned char  addr_type 
)

Definition at line 142 of file dev_addr_lists.c.

void __hw_addr_flush ( struct netdev_hw_addr_list list)

Definition at line 198 of file dev_addr_lists.c.

void __hw_addr_init ( struct netdev_hw_addr_list list)

Definition at line 210 of file dev_addr_lists.c.

int __hw_addr_sync ( struct netdev_hw_addr_list to_list,
struct netdev_hw_addr_list from_list,
int  addr_len 
)

Definition at line 156 of file dev_addr_lists.c.

void __hw_addr_unsync ( struct netdev_hw_addr_list to_list,
struct netdev_hw_addr_list from_list,
int  addr_len 
)

Definition at line 180 of file dev_addr_lists.c.

int dev_addr_add ( struct net_device dev,
const unsigned char addr,
unsigned char  addr_type 
)

dev_addr_add - Add a device address : device : address to add : address type

Add a device address to the device or increase the reference count if it already exists.

The caller must hold the rtnl_mutex.

Definition at line 283 of file dev_addr_lists.c.

int dev_addr_add_multiple ( struct net_device to_dev,
struct net_device from_dev,
unsigned char  addr_type 
)

dev_addr_add_multiple - Add device addresses from another device : device to which addresses will be added : device from which addresses will be added : address type - 0 means type will be used from from_dev

Add device addresses of the one device to another.

The caller must hold the rtnl_mutex.

Definition at line 344 of file dev_addr_lists.c.

int dev_addr_del ( struct net_device dev,
const unsigned char addr,
unsigned char  addr_type 
)

dev_addr_del - Release a device address. : device : address to delete : address type

Release reference to a device address and remove it from the device if the reference count drops to zero.

The caller must hold the rtnl_mutex.

Definition at line 308 of file dev_addr_lists.c.

int dev_addr_del_multiple ( struct net_device to_dev,
struct net_device from_dev,
unsigned char  addr_type 
)

dev_addr_del_multiple - Delete device addresses by another device : device where the addresses will be deleted : device supplying the addresses to be deleted : address type - 0 means type will be used from from_dev

Deletes addresses in to device by the list of addresses in from device.

The caller must hold the rtnl_mutex.

Definition at line 372 of file dev_addr_lists.c.

void dev_addr_flush ( struct net_device dev)

dev_addr_flush - Flush device address list : device

Flush device address list and reset ->dev_addr.

The caller must hold the rtnl_mutex.

Definition at line 229 of file dev_addr_lists.c.

int dev_addr_init ( struct net_device dev)

dev_addr_init - Init device address list : device

Init device address list and create the first element, used by ->dev_addr.

The caller must hold the rtnl_mutex.

Definition at line 247 of file dev_addr_lists.c.

int dev_mc_add ( struct net_device dev,
const unsigned char addr 
)

dev_mc_add - Add a multicast address : device : address to add

Add a multicast address to the device or increase the reference count if it already exists.

Definition at line 593 of file dev_addr_lists.c.

int dev_mc_add_excl ( struct net_device dev,
const unsigned char addr 
)

dev_mc_add_excl - Add a global secondary multicast address : device : address to add

Definition at line 549 of file dev_addr_lists.c.

int dev_mc_add_global ( struct net_device dev,
const unsigned char addr 
)

dev_mc_add_global - Add a global multicast address : device : address to add

Add a global multicast address to the device.

Definition at line 606 of file dev_addr_lists.c.

int dev_mc_del ( struct net_device dev,
const unsigned char addr 
)

dev_mc_del - Delete a multicast address. : device : address to delete

Release reference to a multicast address and remove it from the device if the reference count drops to zero.

Definition at line 634 of file dev_addr_lists.c.

int dev_mc_del_global ( struct net_device dev,
const unsigned char addr 
)

dev_mc_del_global - Delete a global multicast address. : device : address to delete

Release reference to a multicast address and remove it from the device if the reference count drops to zero.

Definition at line 648 of file dev_addr_lists.c.

void dev_mc_flush ( struct net_device dev)

dev_mc_flush - Flush multicast addresses : device

Flush multicast addresses.

Definition at line 711 of file dev_addr_lists.c.

void dev_mc_init ( struct net_device dev)

dev_mc_flush - Init multicast address list : device

Init multicast address list.

Definition at line 725 of file dev_addr_lists.c.

int dev_mc_sync ( struct net_device to,
struct net_device from 
)

dev_mc_sync - Synchronize device's unicast list to another device : destination device : source device

Add newly added addresses to the destination device and release addresses that have no users left. The source device must be locked by netif_addr_lock_bh.

This function is intended to be called from the ndo_set_rx_mode function of layered software devices.

Definition at line 666 of file dev_addr_lists.c.

void dev_mc_unsync ( struct net_device to,
struct net_device from 
)

dev_mc_unsync - Remove synchronized addresses from the destination device : destination device : source device

Remove all addresses that were added to the destination device by dev_mc_sync(). This function is intended to be called from the dev->stop function of layered software devices.

Definition at line 691 of file dev_addr_lists.c.

void __init dev_mcast_init ( void  )

Definition at line 798 of file dev_addr_lists.c.

int dev_uc_add ( struct net_device dev,
const unsigned char addr 
)

dev_uc_add - Add a secondary unicast address : device : address to add

Add a secondary unicast address to the device or increase the reference count if it already exists.

Definition at line 427 of file dev_addr_lists.c.

int dev_uc_add_excl ( struct net_device dev,
const unsigned char addr 
)

dev_uc_add_excl - Add a global secondary unicast address : device : address to add

Definition at line 396 of file dev_addr_lists.c.

int dev_uc_del ( struct net_device dev,
const unsigned char addr 
)

dev_uc_del - Release secondary unicast address. : device : address to delete

Release reference to a secondary unicast address and remove it from the device if the reference count drops to zero.

Definition at line 449 of file dev_addr_lists.c.

void dev_uc_flush ( struct net_device dev)

dev_uc_flush - Flush unicast addresses : device

Flush unicast addresses.

Definition at line 520 of file dev_addr_lists.c.

void dev_uc_init ( struct net_device dev)

dev_uc_flush - Init unicast address list : device

Init unicast address list.

Definition at line 534 of file dev_addr_lists.c.

int dev_uc_sync ( struct net_device to,
struct net_device from 
)

dev_uc_sync - Synchronize device's unicast list to another device : destination device : source device

Add newly added addresses to the destination device and release addresses that have no users left. The source device must be locked by netif_addr_lock_bh.

This function is intended to be called from the dev->set_rx_mode function of layered software devices.

Definition at line 475 of file dev_addr_lists.c.

void dev_uc_unsync ( struct net_device to,
struct net_device from 
)

dev_uc_unsync - Remove synchronized addresses from the destination device : destination device : source device

Remove all addresses that were added to the destination device by dev_uc_sync(). This function is intended to be called from the dev->stop function of layered software devices.

Definition at line 500 of file dev_addr_lists.c.

EXPORT_SYMBOL ( __hw_addr_add_multiple  )
EXPORT_SYMBOL ( __hw_addr_del_multiple  )
EXPORT_SYMBOL ( __hw_addr_sync  )
EXPORT_SYMBOL ( __hw_addr_unsync  )
EXPORT_SYMBOL ( __hw_addr_flush  )
EXPORT_SYMBOL ( __hw_addr_init  )
EXPORT_SYMBOL ( dev_addr_flush  )
EXPORT_SYMBOL ( dev_addr_init  )
EXPORT_SYMBOL ( dev_addr_add  )
EXPORT_SYMBOL ( dev_addr_del  )
EXPORT_SYMBOL ( dev_addr_add_multiple  )
EXPORT_SYMBOL ( dev_addr_del_multiple  )
EXPORT_SYMBOL ( dev_uc_add_excl  )
EXPORT_SYMBOL ( dev_uc_add  )
EXPORT_SYMBOL ( dev_uc_del  )
EXPORT_SYMBOL ( dev_uc_sync  )
EXPORT_SYMBOL ( dev_uc_unsync  )
EXPORT_SYMBOL ( dev_uc_flush  )
EXPORT_SYMBOL ( dev_uc_init  )
EXPORT_SYMBOL ( dev_mc_add_excl  )
EXPORT_SYMBOL ( dev_mc_add  )
EXPORT_SYMBOL ( dev_mc_add_global  )
EXPORT_SYMBOL ( dev_mc_del  )
EXPORT_SYMBOL ( dev_mc_del_global  )
EXPORT_SYMBOL ( dev_mc_sync  )
EXPORT_SYMBOL ( dev_mc_unsync  )
EXPORT_SYMBOL ( dev_mc_flush  )
EXPORT_SYMBOL ( dev_mc_init  )