diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-03-08 09:53:20 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-03-08 09:53:20 +0000 |
| commit | 0e3bbe9197c60139af00420be96e1a690ba4987c (patch) | |
| tree | 6ae1de7638675d1e8b939744a7614930ccf323f2 /sys/compat/linuxkpi/common/include/linux/etherdevice.h | |
| parent | 45fca29bc58c6078e7e0d583d7aa5428e54c71f5 (diff) | |
Notes
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 2c4a4887b284..2aa4cfa337fb 100644 --- a/sys/compat/linuxkpi/common/include/linux/etherdevice.h +++ b/sys/compat/linuxkpi/common/include/linux/etherdevice.h @@ -100,6 +100,12 @@ eth_broadcast_addr(u8 *pa) } static inline void +eth_zero_addr(u8 *pa) +{ + memset(pa, 0, 6); +} + +static inline void random_ether_addr(u8 * dst) { if (read_random(dst, 6) == 0) |
