Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108989335
D7903.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
554 B
Referenced Files
None
Subscribers
None
D7903.diff
View Options
Index: head/sbin/ifconfig/af_link.c
===================================================================
--- head/sbin/ifconfig/af_link.c
+++ head/sbin/ifconfig/af_link.c
@@ -96,8 +96,9 @@
sdl.sdl_nlen = 0;
sdl.sdl_family = AF_LINK;
arc4random_buf(&sdl.sdl_data, ETHER_ADDR_LEN);
- /* Non-multicast and claim it is a hardware address */
+ /* Non-multicast and claim it is locally administered. */
sdl.sdl_data[0] &= 0xfc;
+ sdl.sdl_data[0] |= 0x02;
} else {
if ((temp = malloc(strlen(addr) + 2)) == NULL)
errx(1, "malloc failed");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 8:39 AM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16358944
Default Alt Text
D7903.diff (554 B)
Attached To
Mode
D7903: Indicate that this is a locally administered MAC address.
Attached
Detach File
Event Timeline
Log In to Comment