ip/linklocal: invert the localadm bit from mac address instead of just setting it

front
cinap_lenrek 2018-05-02 20:34:43 +02:00
parent 0c7a3ad1c9
commit 87d922589d
1 changed files with 1 additions and 1 deletions

View File

@ -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) */