Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F116004787
D34228.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
864 B
Referenced Files
None
Subscribers
None
D34228.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/etherdevice.h b/sys/compat/linuxkpi/common/include/linux/etherdevice.h
--- a/sys/compat/linuxkpi/common/include/linux/etherdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/etherdevice.h
@@ -28,6 +28,7 @@
#define _LINUXKPI_LINUX_ETHERDEVICE_H_
#include <linux/types.h>
+#include <linux/device.h>
#include <sys/random.h>
#include <sys/libkern.h>
@@ -107,7 +108,7 @@
}
static inline void
-random_ether_addr(u8 * dst)
+random_ether_addr(u8 *dst)
{
arc4random_buf(dst, 6);
@@ -115,4 +116,19 @@
dst[0] |= 0x02;
}
+static inline void
+eth_random_addr(u8 *dst)
+{
+
+ random_ether_addr(dst);
+}
+
+static inline int
+device_get_mac_address(struct device *dev, char *dst)
+{
+
+ /* XXX get mac address from FDT? */
+ return (-ENOENT);
+}
+
#endif /* _LINUXKPI_LINUX_ETHERDEVICE_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 2, 11:47 AM (15 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17905195
Default Alt Text
D34228.diff (864 B)
Attached To
Mode
D34228: LinuxKPI: add eth_random_addr() and device_get_mac_address()
Attached
Detach File
Event Timeline
Log In to Comment