diff --git a/[refs] b/[refs] index d7fa8b683ac2..683e7fad0190 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e044a651b9b7b1b33d8b7fdb2bb27e443f392083 +refs/heads/master: ad7eee98bef92481581060801bdfd1b25a6106c0 diff --git a/trunk/include/linux/etherdevice.h b/trunk/include/linux/etherdevice.h index 3d406e0ede6d..98a27cccedfd 100644 --- a/trunk/include/linux/etherdevice.h +++ b/trunk/include/linux/etherdevice.h @@ -137,6 +137,17 @@ static inline void random_ether_addr(u8 *addr) addr [0] |= 0x02; /* set local assignment bit (IEEE802) */ } +/** + * eth_broadcast_addr - Assign broadcast address + * @addr: Pointer to a six-byte array containing the Ethernet address + * + * Assign the broadcast address to the given address array. + */ +static inline void eth_broadcast_addr(u8 *addr) +{ + memset(addr, 0xff, ETH_ALEN); +} + /** * eth_hw_addr_random - Generate software assigned random Ethernet and * set device flag