diff options
author | marius <marius@FreeBSD.org> | 2005-12-05 12:32:20 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-12-05 12:32:20 +0000 |
commit | 2d1f0805dac87b79aa2bfd75db0f44e672070411 (patch) | |
tree | 692f8c140d842ecfe46d285630f5a8d3b2f92be2 /sys/netncp/ncp_conn.c | |
parent | 9b19d72862ec030327b619472a0fdd12ace7a4c0 (diff) | |
download | FreeBSD-src-2d1f0805dac87b79aa2bfd75db0f44e672070411.zip FreeBSD-src-2d1f0805dac87b79aa2bfd75db0f44e672070411.tar.gz |
- Rev. 1.175 fixed compilation on sparc64 but also backed out zeroing of
the eaddr array (introduced in rev. 1.174) prior to writing to it. As
dc_read_eeprom() is told to write only 3 16-bit words to eaddr but eaddr
in fact is somewhat larger removal of the zeroing defeated the check
whether the MAC address is all zero as there can be some random garbage
in eaddr past the 3 words written to it and the check verifys all bits
in eaddr. Solve this by changing the check to verify only the 3 words
(happenning to be ETHER_ADDR_LEN bytes) written to eaddr.
- While here change the notation of "FCode" in a nearby comment to the
official way.
Ok'ed by: marcel, ru
Diffstat (limited to 'sys/netncp/ncp_conn.c')
0 files changed, 0 insertions, 0 deletions