diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-03-03 09:56:04 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-03-03 09:56:04 +0000 |
| commit | 510ebed7beff2d2aae1901753f54f0c335cc3736 (patch) | |
| tree | 1b97900db5f99e32a4fb1ab1ec90356b7d1b3590 /sys/compat/linuxkpi/common/include/linux/etherdevice.h | |
| parent | 24fe42dcdde379d2a060a95e4f060412e4002f56 (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 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); |
