Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Now that the ARP code doesn't assume that m_pktda...



details:   https://anonhg.NetBSD.org/src/rev/a1665a3391eb
branches:  trunk
changeset: 473342:a1665a3391eb
user:      bad <bad%NetBSD.org@localhost>
date:      Sat May 29 22:44:11 1999 +0000

description:
Now that the ARP code doesn't assume that m_pktdat[0] is the start of the
packet(!) we can enable the code that aligns the struct token_header at the
start of the mbuf.

diffstat:

 sys/dev/ic/tropic.c |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r e19f3e3a9527 -r a1665a3391eb sys/dev/ic/tropic.c
--- a/sys/dev/ic/tropic.c       Sat May 29 22:36:07 1999 +0000
+++ b/sys/dev/ic/tropic.c       Sat May 29 22:44:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tropic.c,v 1.4 1999/05/18 23:52:56 thorpej Exp $       */
+/*     $NetBSD: tropic.c,v 1.5 1999/05/29 22:44:11 bad Exp $   */
 
 /* 
  * Ported to NetBSD by Onno van der Linden
@@ -1474,11 +1474,6 @@
                        len = MCLBYTES;
                }
 
-#if 0
-               /*
-                * XXX this is what the ethernet drivers do,
-                * but enabling it produces "xmit return code = 0x44"!
-                */
                /*
                 * Make sure data after the MAC header is aligned.
                 */
@@ -1489,7 +1484,6 @@
                        len -= newdata - m->m_data;
                        m->m_data = newdata;
                }
-#endif
                m->m_len = len = min(totlen, len);
                tr_bcopy(sc, mtod(m, char *), len);
                totlen -= len;



Home | Main Index | Thread Index | Old Index