Use ETHER_ADDR_LEN instead of ETHER_ADDR_SIZE.
This commit is contained in:
parent
f7cf1c1d14
commit
43f83f0b47
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26584
@ -425,7 +425,7 @@ eth_transmit(d,t,s,p)
|
|||||||
#ifdef INCLUDE_3COM
|
#ifdef INCLUDE_3COM
|
||||||
if (eth_vendor == VENDOR_3COM) {
|
if (eth_vendor == VENDOR_3COM) {
|
||||||
bcopy(d, eth_bmem, 6); /* dst */
|
bcopy(d, eth_bmem, 6); /* dst */
|
||||||
bcopy(eth_node_addr, eth_bmem+6, ETHER_ADDR_SIZE); /* src */
|
bcopy(eth_node_addr, eth_bmem+6, ETHER_ADDR_LEN); /* src */
|
||||||
*(eth_bmem+12) = t>>8; /* type */
|
*(eth_bmem+12) = t>>8; /* type */
|
||||||
*(eth_bmem+13) = t;
|
*(eth_bmem+13) = t;
|
||||||
bcopy(p, eth_bmem+14, s);
|
bcopy(p, eth_bmem+14, s);
|
||||||
|
Loading…
Reference in New Issue
Block a user