summaryrefslogtreecommitdiffstats
path: root/sys/i386/boot/netboot
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-08-18 07:58:13 +0000
committerjoerg <joerg@FreeBSD.org>1996-08-18 07:58:13 +0000
commita49962396afc7a266dd129af317a1b2d82006043 (patch)
tree78df1befafc504a97bada0588afbb7f99eefde8b /sys/i386/boot/netboot
parent24ff198adf656da2313134cd71ae18a9e3810f95 (diff)
downloadFreeBSD-src-a49962396afc7a266dd129af317a1b2d82006043.zip
FreeBSD-src-a49962396afc7a266dd129af317a1b2d82006043.tar.gz
Fix a couple of typos that sneaked in with Poul's ETHER_* mega-commit.
Reviewed by: phk
Diffstat (limited to 'sys/i386/boot/netboot')
-rw-r--r--sys/i386/boot/netboot/ns8390.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/boot/netboot/ns8390.c b/sys/i386/boot/netboot/ns8390.c
index f1a2f28..8b64f61 100644
--- a/sys/i386/boot/netboot/ns8390.c
+++ b/sys/i386/boot/netboot/ns8390.c
@@ -433,12 +433,12 @@ eth_transmit(d,t,s,p)
}
inb(0x84);
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+13) = t;
bcopy(p, eth_bmem+14, s);
s += 14;
- while (s < ETHER_MIN_LAN) *(eth_bmem+(s++)) = 0;
+ while (s < ETHER_MIN_LEN) *(eth_bmem+(s++)) = 0;
if (eth_flags & FLAG_790) {
outb(eth_asic_base + WD_MSR, 0);
inb(0x84);
OpenPOWER on IntegriCloud