Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149185230
D50152.1789644125.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D50152.1789644125.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
@@ -57,10 +57,16 @@
0x00);
}
+static inline bool
+is_unicast_ether_addr(const u8 * addr)
+{
+ return ((addr[0] & 0x01) == 0x00);
+}
+
static inline bool
is_multicast_ether_addr(const u8 * addr)
{
- return (0x01 & addr[0]);
+ return ((addr[0] & 0x01) == 0x01);
}
static inline bool
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 17, 11:22 AM (12 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29727525
Default Alt Text
D50152.1789644125.diff (545 B)
Attached To
Mode
D50152: LinuxKPI: add is_unicast_ether_addr()
Attached
Detach File
Event Timeline
Log In to Comment