]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Fix IFLA_ADDRESS handling
authorDavid Miller <davem@davemloft.net>
Wed, 9 Aug 2006 09:33:28 +0000 (02:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Aug 2006 21:13:30 +0000 (14:13 -0700)
commit216cf62f1fd2fba890d43956a8548eb10382b658
tree6a12d5e29e8ff110b2f152672daeaa6eb6d3bbef
parent7e9d4f4ffd29c60abc35d5bf535d3712f662567c
Fix IFLA_ADDRESS handling

[RTNETLINK]: Fix IFLA_ADDRESS handling.

The ->set_mac_address handlers expect a pointer to a
sockaddr which contains the MAC address, whereas
IFLA_ADDRESS provides just the MAC address itself.

So whip up a sockaddr to wrap around the netlink
attribute for the ->set_mac_address call.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/rtnetlink.c