diff options
author | Patrick McHardy <kaber@trash.net> | 2007-07-11 19:45:24 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-11 19:45:24 -0700 |
commit | 8c979c26a0f093c13290320edda799d8335e50ae (patch) | |
tree | 3189e5568583a794aff9d014898ff9a74b79d7cc /net/8021q/vlan.h | |
parent | 71bffe556c59a7865bf0b1ecd94530f1e296cdb0 (diff) | |
download | linux-stable-8c979c26a0f093c13290320edda799d8335e50ae.tar.gz linux-stable-8c979c26a0f093c13290320edda799d8335e50ae.tar.bz2 linux-stable-8c979c26a0f093c13290320edda799d8335e50ae.zip |
[VLAN]: Fix MAC address handling
The VLAN MAC address handling is broken in multiple ways. When the address
differs when setting it, the real device is put in promiscous mode twice,
but never taken out again. Additionally it doesn't resync when the real
device's address is changed and needlessly puts it in promiscous mode when
the vlan device is still down.
Fix by moving address handling to vlan_dev_open/vlan_dev_stop and properly
deal with address changes in the device notifier. Also switch to
dev_unicast_add (which needs the exact same handling).
Since the set_mac_address handler is identical to the generic ethernet one
with these changes, kill it and use ether_setup().
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r-- | net/8021q/vlan.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index fe6bb0f7d275..62ce1c519aab 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h @@ -58,7 +58,6 @@ int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev, int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev); int vlan_dev_hwaccel_hard_start_xmit(struct sk_buff *skb, struct net_device *dev); int vlan_dev_change_mtu(struct net_device *dev, int new_mtu); -int vlan_dev_set_mac_address(struct net_device *dev, void* addr); int vlan_dev_open(struct net_device* dev); int vlan_dev_stop(struct net_device* dev); int vlan_dev_ioctl(struct net_device* dev, struct ifreq *ifr, int cmd); |