aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-06-27 04:26:58 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-11 01:15:55 -0400
commit3fba5a8b1e3df2384b90493538161e83cf15dd5f (patch)
treef38bb73c1bf2516c6c973c9e7cd18fd5a20b1c20 /include/linux/netdevice.h
parentbf742482d7a647c5c6f03f78eb35a862e159ecf5 (diff)
[NET]: dev_mcast: switch to generic net_device address lists
Use generic net_device address lists for multicast list handling. Some defines are used to keep drivers working. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index aa389c77aa3e..9e114e77e54d 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -189,15 +189,12 @@ struct dev_addr_list
189/* 189/*
190 * We tag multicasts with these structures. 190 * We tag multicasts with these structures.
191 */ 191 */
192 192
193struct dev_mc_list 193#define dev_mc_list dev_addr_list
194{ 194#define dmi_addr da_addr
195 struct dev_mc_list *next; 195#define dmi_addrlen da_addrlen
196 __u8 dmi_addr[MAX_ADDR_LEN]; 196#define dmi_users da_users
197 unsigned char dmi_addrlen; 197#define dmi_gusers da_gusers
198 int dmi_users;
199 int dmi_gusers;
200};
201 198
202struct hh_cache 199struct hh_cache
203{ 200{
@@ -400,7 +397,7 @@ struct net_device
400 unsigned char addr_len; /* hardware address length */ 397 unsigned char addr_len; /* hardware address length */
401 unsigned short dev_id; /* for shared network cards */ 398 unsigned short dev_id; /* for shared network cards */
402 399
403 struct dev_mc_list *mc_list; /* Multicast mac addresses */ 400 struct dev_addr_list *mc_list; /* Multicast mac addresses */
404 int mc_count; /* Number of installed mcasts */ 401 int mc_count; /* Number of installed mcasts */
405 int promiscuity; 402 int promiscuity;
406 int allmulti; 403 int allmulti;