]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[RTNETLINK]: Fix IFLA_ADDRESS handling.
authorDavid Miller <davem@davemloft.net>
Sun, 19 Nov 2006 23:21:04 +0000 (00:21 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sun, 19 Nov 2006 23:21:04 +0000 (00:21 +0100)
commit705cb93548ca3f5e552ea10832203373fb7b7917
tree44a9732f9a685f93acc0e1b6204c4e925070e5bf
parent02db407979ff96eb7b619d3683155e5298021908
[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: Adrian Bunk <bunk@stusta.de>
net/core/rtnetlink.c