X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=include%2Flinux%2Fetherdevice.h;h=4d29153aa4ee4edbf82b74b36496a430551d4815;hp=05955cf09937c17e0db7584275168485008b7a0d;hb=4c751e9d1fdd725feaa8d83e5680dbec3f1f7178;hpb=faaea5c5f2bb1266ea35a1dcbe0b685f826f6637 diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 05955cf09937..4d29153aa4ee 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -139,6 +139,17 @@ static inline void random_ether_addr(u8 *addr) addr [0] |= 0x02; /* set local assignment bit (IEEE802) */ } +/** + * eth_zero_addr - Assign zero address + * @addr: Pointer to a six-byte array containing the Ethernet address + * + * Assign the zero address to the given address array. + */ +static inline void eth_zero_addr(u8 *addr) +{ + memset(addr, 0x00, ETH_ALEN); +} + /** * dev_hw_addr_random - Create random MAC and set device flag * @dev: pointer to net_device structure