From: Ard van Breemen <ard@telegraafnet.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] bogus packet size
Date: Mon, 04 Feb 2002 16:47:21 +0000 [thread overview]
Message-ID: <marc-lartc-101284129629524@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101257140311900@msgid-missing>
On Mon, Feb 04, 2002 at 05:11:38PM +0100, Tom Beer wrote:
> eth0: bogus packet size 59075 status=0xc7 nxpg=0x6
> What does this mean?
grep -r "bogus packet size" .
./drivers/net/8390.c: printk(KERN_DEBUG "%s: bogus packet size: %d, status=%#2x nxpg=%#2x.\n",
./drivers/net/plip.c: printk(KERN_WARNING "%s: bogus packet size %d.\n", dev->name, rcv->length.h);
drivers/net/8390.c:
701 pkt_len = rx_frame.count - sizeof(struct e8390_pkt_hdr);
702 pkt_stat = rx_frame.status;
719 if (pkt_len < 60 || pkt_len > 1518)
720 {
721 if (ei_debug)
722 printk(KERN_DEBUG "%s: bogus packet size: %d, status=%#2x nxpg=%#2x.\n",
723 dev->name, rx_frame.count, rx_frame.status,
724 rx_frame.next);
725 ei_local->stat.rx_errors++;
726 ei_local->stat.rx_length_errors++;
727 }
728 else if ((pkt_stat & 0x0F) = ENRSR_RXOK)
729 {
730 struct sk_buff *skb;
731
732 skb = dev_alloc_skb(pkt_len+2);
733 if (skb = NULL)
<snip>
756 else
757 {
758 if (ei_debug)
759 printk(KERN_DEBUG "%s: bogus packet: status=%#2x nxpg=%#2x size=%d\n",
It is probable a some undocumented status whithout the right decoding
of the driver. Thus: you should only look at the status, not at the
packet size, which probably just is not legal because of receiving errors.
--
<ard@telegraafnet.nl> Telegraaf Elektronische Media http://wwwijzer.nl
http://leerquoten.monster.org/ http://www.faqs.org/rfcs/rfc1855.html
Let your government know you value your freedom. Sign the petition:
http://petition.eurolinux.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
prev parent reply other threads:[~2002-02-04 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-01 13:49 [LARTC] bogus packet size Tom Beer
2002-02-04 16:11 ` Tom Beer
2002-02-04 16:47 ` Ard van Breemen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101284129629524@msgid-missing \
--to=ard@telegraafnet.nl \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.