]> err.no Git - linux-2.6/commit
[RTNETLINK]: Fix IFLA_ADDRESS handling.
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 8 Aug 2006 23:47:37 +0000 (16:47 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 8 Aug 2006 23:47:37 +0000 (16:47 -0700)
commit70f8e78e150425b01c1099087ad3decacf7e4ccf
treea8b670e567d0936b830d2212101e5593b4f1c57c
parent1b2a720506ccf7c30baaeda5d990c29b31e21726
[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>
net/core/rtnetlink.c