Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Packet includes CRC, so mark it in the mbuf h...



details:   https://anonhg.NetBSD.org/src/rev/e6c25e19c2d8
branches:  trunk
changeset: 511006:e6c25e19c2d8
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sun Jun 10 21:53:08 2001 +0000

description:
Packet includes CRC, so mark it in the mbuf header.  Fixes the
"discarding oversize frame (len=1518)" problem.

diffstat:

 sys/dev/pcmcia/if_xi.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 0cce917fa747 -r e6c25e19c2d8 sys/dev/pcmcia/if_xi.c
--- a/sys/dev/pcmcia/if_xi.c    Sun Jun 10 20:53:52 2001 +0000
+++ b/sys/dev/pcmcia/if_xi.c    Sun Jun 10 21:53:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_xi.c,v 1.9 2001/02/21 21:39:55 jdolecek Exp $       */
+/*     $NetBSD: if_xi.c,v 1.10 2001/06/10 21:53:08 gmcgarry Exp $      */
 /*     OpenBSD: if_xe.c,v 1.9 1999/09/16 11:28:42 niklas Exp   */
 
 /*
@@ -848,6 +848,7 @@
                return (recvcount);
        m->m_pkthdr.rcvif = ifp;
        m->m_pkthdr.len = pktlen;
+       m->m_flags |= M_HASFCS;
        len = MHLEN;
        top = 0;
        mp = &top;



Home | Main Index | Thread Index | Old Index