summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_ie.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/if_ie.c')
-rw-r--r--sys/dev/isa/if_ie.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/isa/if_ie.c b/sys/dev/isa/if_ie.c
index 387f168ca9b..9910ecd8c07 100644
--- a/sys/dev/isa/if_ie.c
+++ b/sys/dev/isa/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.24 2002/03/14 01:26:56 millert Exp $ */
+/* $OpenBSD: if_ie.c,v 1.25 2003/02/03 19:45:53 jason Exp $ */
/* $NetBSD: if_ie.c,v 1.51 1996/05/12 23:52:48 mycroft Exp $ */
/*-
@@ -1510,9 +1510,15 @@ iestart(ifp)
bcopy(mtod(m, caddr_t), buffer, m->m_len);
buffer += m->m_len;
}
- len = max(m0->m_pkthdr.len, ETHER_MIN_LEN);
m_freem(m0);
+
+ if (len < ETHER_MIN_LEN - ETHER_CRC_LEN) {
+ bzero(buffer, ETHER_MIN_LEN - ETHER_CRC_LEN - len);
+ len = ETHER_MIN_LEN - ETHER_CRC_LEN;
+ buffer += ETHER_MIN_LEN - ETHER_CRC_LEN;
+ }
+
sc->xmit_buffs[sc->xchead]->ie_xmit_flags = len;
/* Start the first packet transmitting. */