Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/arch/mac68k/dev Pullup revisions 1.71-1.73 (request...



details:   https://anonhg.NetBSD.org/src/rev/c58bd1c052f3
branches:  netbsd-1-6
changeset: 529954:c58bd1c052f3
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Jan 27 05:26:08 2003 +0000

description:
Pullup revisions 1.71-1.73 (requested by bouyer in ticket #1096)
 Zero out the NIC memory when padding packet to
 ETHER_MIN_LEN-ETHER_CRC_LEN sc->write_mbuf now return len of
 buffer, including padding.

diffstat:

 sys/arch/mac68k/dev/if_ae.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 59321c13246d -r c58bd1c052f3 sys/arch/mac68k/dev/if_ae.c
--- a/sys/arch/mac68k/dev/if_ae.c       Mon Jan 27 05:25:52 2003 +0000
+++ b/sys/arch/mac68k/dev/if_ae.c       Mon Jan 27 05:26:08 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ae.c,v 1.71 2001/11/10 21:32:33 jklos Exp $ */
+/*     $NetBSD: if_ae.c,v 1.71.10.1 2003/01/27 05:26:08 jmc Exp $      */
 
 /*
  * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@@ -173,6 +173,12 @@
                savebyte[1] = 0;
                bus_space_write_region_2(sc->sc_buft, sc->sc_bufh,
                    buf, (u_int16_t *)savebyte, 1);
+                   buf += 2;
+       }
+       if (totlen < ETHER_MIN_LEN - ETHER_CRC_LEN) {
+               bus_space_set_region_1(sc->sc_buft, sc->sc_bufh, buf, 0,
+                   (ETHER_MIN_LEN - ETHER_CRC_LEN - totlen) >> 1);
+               totlen = ETHER_MIN_LEN - ETHER_CRC_LEN;
        }
        return (totlen);
 }



Home | Main Index | Thread Index | Old Index