- To: Michał Mirosław <mirqus@xxxxxxxxx>
- Subject: Re: [PATCH 00/12] Part 2: check given MAC address, if invalid return -EADDRNOTAVAIL
- From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
- Date: Sat, 25 Feb 2012 11:13:21 +0100
- Authentication-results: mr.google.com; spf=pass (google.com: domain of geert.uytterhoeven@xxxxxxxxx designates 10.180.89.71 as permitted sender) smtp.mail=geert.uytterhoeven@xxxxxxxxx; dkim=pass header.i=geert.uytterhoeven@xxxxxxxxx
- Cc: Danny Kukawka <danny.kukawka@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Andy Gospodarek <andy@xxxxxxxxxxxxx>, Guo-Fu Tseng <cooldavid@xxxxxxxxxxxxx>, Petko Manolov <petkan@xxxxxxxxxxxxxxxxxxxxx>, "VMware, Inc." <pv-drivers@xxxxxxxxxx>, "John W. Linville" <linville@xxxxxxxxxxxxx>, linux390@xxxxxxxxxx, Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>, Danny Kukawka <dkukawka@xxxxxxx>, Stephen Hemminger <shemminger@xxxxxxxxxx>, Joe Perches <joe@xxxxxxxxxxx>, Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>, Jiri Pirko <jpirko@xxxxxxxxxx>, netdev@xxxxxxxxxxxxxxx, linux-usb@xxxxxxxxxxxxxxx, linux-wireless@xxxxxxxxxxxxxxx, libertas-dev@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, linux-hams@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx
- In-reply-to: <CAHXqBFK=u+MchBn=D31h6nhp-R9GTNbaC18QJA937zjXc60UQw@mail.gmail.com>
2012/2/24 Michał Mirosław <mirqus@xxxxxxxxx>:
> 2012/2/24 Danny Kukawka <danny.kukawka@xxxxxxxxx>:
>> Second Part of series patches to unifiy the return value of
>> .ndo_set_mac_address if the given address isn't valid.
>>
>> These changes check if a given (MAC) address is valid in
>> .ndo_set_mac_address, if invalid return -EADDRNOTAVAIL
>> as eth_mac_addr() already does if is_valid_ether_addr() fails.
>
> Why not just fix dev_set_mac_address() and make do_setlink() use that?
BTW, it's also called from dev_set_mac_address().
> Checks are specific to address family, not device model I assume.
Indeed, why can't this be done in one single place, instead of sprinkling these
checks over all drivers, missing all out-of-tree (note: I don't care) and all
soon-to-be-submitted drivers?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Newbie]
[Kernel Newbies]
[Memory]
[Git]
[Security]
[Netfilter]
[Linux Admin]
[Bugtraq]
[Photo]
[Yosemite Photos]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[ARM Linux Kernel]
[Linux Networking]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Linux Resources]