diff options
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/etherdevice.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/etherdevice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/etherdevice.h b/sys/compat/linuxkpi/common/include/linux/etherdevice.h index 70e5f64581b1..c58136756c26 100644 --- a/sys/compat/linuxkpi/common/include/linux/etherdevice.h +++ b/sys/compat/linuxkpi/common/include/linux/etherdevice.h @@ -94,6 +94,12 @@ ether_addr_equal_64bits(const u8 *pa, const u8 *pb) } static inline void +eth_broadcast_addr(u8 *pa) +{ + memset(pa, 0xff, 6); +} + +static inline void random_ether_addr(u8 * dst) { read_random(dst, 6); |
