X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fetherdevice.h;h=e4b09d2a2295e79f2cc70072c1737c233a9914cf;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=745c988359c0bb29628609062c7d7a59c424ba45;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 745c98835..e4b09d2a2 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -92,9 +92,8 @@ static inline int is_broadcast_ether_addr(const u8 *addr) */ static inline int is_valid_ether_addr(const u8 *addr) { - /* FF:FF:FF:FF:FF:FF is a multicast address so we don't need to - * explicitly check for it here. */ - return !is_multicast_ether_addr(addr) && !is_zero_ether_addr(addr); + return !is_multicast_ether_addr(addr) && !is_zero_ether_addr(addr) && + !is_broadcast_ether_addr(addr); } /**