diff options
author | Patrick McHardy <kaber@trash.net> | 2007-06-30 16:35:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:16:23 -0400 |
commit | 61cbc2fca6335be52788773b21efdc52a2750924 (patch) | |
tree | 489e6a9571c7fabd49dcff384dd634635fe66555 /include | |
parent | d62733c8e437fdb58325617c4b3331769ba82d70 (diff) |
[NET]: Fix secondary unicast/multicast address count maintenance
When a reference to an existing address is increased or decreased without
hitting zero, the address count is incorrectly adjusted.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9817821729c4..8590d685d935 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1091,8 +1091,8 @@ extern int dev_unicast_add(struct net_device *dev, void *addr, int alen); | |||
1091 | extern int dev_mc_delete(struct net_device *dev, void *addr, int alen, int all); | 1091 | extern int dev_mc_delete(struct net_device *dev, void *addr, int alen, int all); |
1092 | extern int dev_mc_add(struct net_device *dev, void *addr, int alen, int newonly); | 1092 | extern int dev_mc_add(struct net_device *dev, void *addr, int alen, int newonly); |
1093 | extern void dev_mc_discard(struct net_device *dev); | 1093 | extern void dev_mc_discard(struct net_device *dev); |
1094 | extern int __dev_addr_delete(struct dev_addr_list **list, void *addr, int alen, int all); | 1094 | extern int __dev_addr_delete(struct dev_addr_list **list, int *count, void *addr, int alen, int all); |
1095 | extern int __dev_addr_add(struct dev_addr_list **list, void *addr, int alen, int newonly); | 1095 | extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly); |
1096 | extern void __dev_addr_discard(struct dev_addr_list **list); | 1096 | extern void __dev_addr_discard(struct dev_addr_list **list); |
1097 | extern void dev_set_promiscuity(struct net_device *dev, int inc); | 1097 | extern void dev_set_promiscuity(struct net_device *dev, int inc); |
1098 | extern void dev_set_allmulti(struct net_device *dev, int inc); | 1098 | extern void dev_set_allmulti(struct net_device *dev, int inc); |