Linux Kernel
3.7.1
|
#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.
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_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_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.
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 | ) |