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

This commit is contained in:
cinap_lenrek 2018-05-02 20:34:43 +02:00
parent 0c7a3ad1c9
commit 87d922589d

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