diff options
author | imp <imp@FreeBSD.org> | 2000-03-20 07:09:32 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-03-20 07:09:32 +0000 |
commit | 5fd73442124939610145611b0d348045cea7a7c9 (patch) | |
tree | 43eb9d4fcfb78e7fbab2781cb4688901114579bc /sys/dev/ed | |
parent | 7b653e3781657869d994fe86569b3e37ab5fc81b (diff) | |
download | FreeBSD-src-5fd73442124939610145611b0d348045cea7a7c9.zip FreeBSD-src-5fd73442124939610145611b0d348045cea7a7c9.tar.gz |
Noriyoshi Kawano-san reported in nomads another OUI for linksys. 4 is
too many, so I removed the checks for the valid OUIs. We already do a
checksum of the entire ethernet address, so extra checking against the
OUI shouldn't be needed.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index b91727a..12f4c44 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -899,9 +899,6 @@ static u_short ed_get_Linksys(sc) struct ed_softc *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,11 +916,7 @@ ed_get_Linksys(sc) for (i = 0; i < ETHER_ADDR_LEN; i++) { 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, LinksysOUI3, sizeof(LinksysOUI3))) - return (0); - return (1); + return (0); } /* |