summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-04-03 00:15:35 +0000
committerderaadt <deraadt@openbsd.org>2010-04-03 00:15:35 +0000
commitaa0b78db172de988316968fe8525f0609720094c (patch)
tree1dd996eb0930071be61328ffe3f9211d30f226d0 /sys/net/if_ethersubr.c
parentThe rtm_errno check which was moved in the last commit should only (diff)
downloadwireguard-openbsd-aa0b78db172de988316968fe8525f0609720094c.tar.xz
wireguard-openbsd-aa0b78db172de988316968fe8525f0609720094c.zip
document the first byte of the random MAC address
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 2a7b8e07524..8087df6eaab 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.139 2010/01/12 06:47:25 yasuoka Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.140 2010/04/03 00:15:35 deraadt Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -887,6 +887,7 @@ ether_fakeaddr(struct ifnet *ifp)
static int unit;
int rng;
+ /* Non-multicast; locally administered address */
((struct arpcom *)ifp)->ac_enaddr[0] = 0xfe;
((struct arpcom *)ifp)->ac_enaddr[1] = 0xe1;
((struct arpcom *)ifp)->ac_enaddr[2] = 0xba;