Skip to content
Commit 70f8e78e authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b2a7205
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment