Page MenuHomeFreeBSD

D7903.diff
No OneTemporary

D7903.diff

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

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)

Event Timeline