Implement eth_zero_addr() in the LinuxKPI.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-03-08 09:53:20 +00:00
parent 45fca29bc5
commit 0e3bbe9197

View File

@ -99,6 +99,12 @@ eth_broadcast_addr(u8 *pa)
memset(pa, 0xff, 6);
}
static inline void
eth_zero_addr(u8 *pa)
{
memset(pa, 0, 6);
}
static inline void
random_ether_addr(u8 * dst)
{