Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Don't set M_HASFCS. Rather than just print we go...
details: https://anonhg.NetBSD.org/src/rev/7cd95ac7ee02
branches: trunk
changeset: 565476:7cd95ac7ee02
user: matt <matt%NetBSD.org@localhost>
date: Sat Apr 10 07:44:36 2004 +0000
description:
Don't set M_HASFCS. Rather than just print we got a bad packet length,
actually print out the length that was bad.
diffstat:
sys/dev/ic/cs89x0.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 99cec8dea2e5 -r 7cd95ac7ee02 sys/dev/ic/cs89x0.c
--- a/sys/dev/ic/cs89x0.c Sat Apr 10 07:41:32 2004 +0000
+++ b/sys/dev/ic/cs89x0.c Sat Apr 10 07:44:36 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cs89x0.c,v 1.12 2004/03/24 00:31:15 matt Exp $ */
+/* $NetBSD: cs89x0.c,v 1.13 2004/04/10 07:44:36 matt Exp $ */
/*
* Copyright 1997
@@ -186,7 +186,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.12 2004/03/24 00:31:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.13 2004/04/10 07:44:36 matt Exp $");
#include "opt_inet.h"
@@ -1467,7 +1467,6 @@
struct ifnet *ifp = &sc->sc_ethercom.ec_if;
ifp->if_ipackets++;
- m->m_flags |= M_HASFCS;
#if NBPFILTER > 0
/*
@@ -1518,7 +1517,8 @@
}
if (totlen > ETHER_MAX_LEN) {
- printf("%s: invalid packet length\n", sc->sc_dev.dv_xname);
+ printf("%s: invalid packet length %d\n",
+ sc->sc_dev.dv_xname, totlen);
/* skip the received frame */
CS_WRITE_PACKET_PAGE(sc, PKTPG_RX_CFG,
Home |
Main Index |
Thread Index |
Old Index