Add another Linksys OUI.

PR:		16922
Submitted by:	takawata@shidahara1.planet.sci.kobe-u.ac.jp
This commit is contained in:
Warner Losh 2000-03-13 09:42:09 +00:00
parent 5111e26e96
commit 02c988c53e

View File

@ -901,6 +901,7 @@ ed_get_Linksys(sc)
{
u_char LinksysOUI1[] = {0x00, 0xe0, 0x98};
u_char LinksysOUI2[] = {0x00, 0x80, 0xc8};
u_char LinksysOUI3[] = {0x00, 0xa0, 0xb0};
u_char sum;
int i;
@ -919,7 +920,8 @@ ed_get_Linksys(sc)
sc->arpcom.ac_enaddr[i] = inb(sc->asic_addr + 0x04 + i);
}
if (bcmp(sc->arpcom.ac_enaddr, LinksysOUI1, sizeof(LinksysOUI1)) &&
bcmp(sc->arpcom.ac_enaddr, LinksysOUI2, sizeof(LinksysOUI2)))
bcmp(sc->arpcom.ac_enaddr, LinksysOUI2, sizeof(LinksysOUI2)) &&
bcmp(sc->arpcom.ac_enaddr, LinksysOUI3, sizeof(LinksysOUI3)))
return (0);
return (1);
}