aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-04-01 17:22:09 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-03 17:22:11 -0400
commita748ee2426817a95b1f03012d8f339c45c722ae1 (patch)
tree37cb9f8836f05bd49b86eb52ddeff3e98185cc58 /include/linux/netdevice.h
parent9fc4178b149ae8b0a2fbf83f2f4df3cf8789177b (diff)
net: move address list functions to a separate file
+little renaming of unicast functions to be smooth with multicast ones Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index b5670ab5107..60f0c83192f 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1991,15 +1991,20 @@ extern int dev_addr_add_multiple(struct net_device *to_dev,
1991extern int dev_addr_del_multiple(struct net_device *to_dev, 1991extern int dev_addr_del_multiple(struct net_device *to_dev,
1992 struct net_device *from_dev, 1992 struct net_device *from_dev,
1993 unsigned char addr_type); 1993 unsigned char addr_type);
1994extern void dev_addr_flush(struct net_device *dev);
1995extern int dev_addr_init(struct net_device *dev);
1996
1997/* Functions used for unicast addresses handling */
1998extern int dev_uc_add(struct net_device *dev, unsigned char *addr);
1999extern int dev_uc_del(struct net_device *dev, unsigned char *addr);
2000extern int dev_uc_sync(struct net_device *to, struct net_device *from);
2001extern void dev_uc_unsync(struct net_device *to, struct net_device *from);
2002extern void dev_uc_flush(struct net_device *dev);
2003extern void dev_uc_init(struct net_device *dev);
1994 2004
1995/* Functions used for secondary unicast and multicast support */ 2005/* Functions used for secondary unicast and multicast support */
1996extern void dev_set_rx_mode(struct net_device *dev); 2006extern void dev_set_rx_mode(struct net_device *dev);
1997extern void __dev_set_rx_mode(struct net_device *dev); 2007extern void __dev_set_rx_mode(struct net_device *dev);
1998extern int dev_unicast_delete(struct net_device *dev, void *addr);
1999extern int dev_unicast_add(struct net_device *dev, void *addr);
2000extern int dev_unicast_sync(struct net_device *to, struct net_device *from);
2001extern void dev_unicast_unsync(struct net_device *to, struct net_device *from);
2002extern void dev_unicast_flush(struct net_device *dev);
2003extern int dev_mc_delete(struct net_device *dev, void *addr, int alen, int all); 2008extern int dev_mc_delete(struct net_device *dev, void *addr, int alen, int all);
2004extern int dev_mc_add(struct net_device *dev, void *addr, int alen, int newonly); 2009extern int dev_mc_add(struct net_device *dev, void *addr, int alen, int newonly);
2005extern int dev_mc_sync(struct net_device *to, struct net_device *from); 2010extern int dev_mc_sync(struct net_device *to, struct net_device *from);