ref: 87d922589dc15a047319a2af4290d15003ae314a
parent: 0c7a3ad1c9864a62174129bcd4adeef6c9dfac16
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed May 2 16:34:43 EDT 2018
ip/linklocal: invert the localadm bit from mac address instead of just setting it
--- a/sys/src/cmd/ip/linklocal.c
+++ b/sys/src/cmd/ip/linklocal.c
@@ -25,7 +25,7 @@
void
ea2eui64(uchar *lla, uchar *ea)
{
- *lla++ = *ea++ | V60globaladm; /* oui (company id) */
+ *lla++ = *ea++ ^ V60globaladm; /* oui (company id) */
*lla++ = *ea++; /* " */
*lla++ = *ea++; /* " */
*lla++ = 0xFF; /* mac-48 in eui-64 (sic) */