ip/linklocal: invert the localadm bit from mac address instead of just setting it
parent
0c7a3ad1c9
commit
87d922589d
|
@ -25,7 +25,7 @@ usage(void)
|
|||
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) */
|
||||
|
|
Loading…
Reference in New Issue