* [Bluez-devel] BNEP corruption.
@ 2004-09-06 15:02 David Woodhouse
0 siblings, 0 replies; only message in thread
From: David Woodhouse @ 2004-09-06 15:02 UTC (permalink / raw)
To: BlueZ Mailing List
Using a PCMCIA bluetooth card I see this frequently...
bcsp_recv: Error in BCSP hdr checksum
bcsp_recv: Out-of-order packet arrived, got 2 expected 1
bcsp_recv: Out-of-order packet arrived, got 3 expected 1
bcsp_recv: Out-of-order packet arrived, got 4 expected 1
bcsp_recv: Short BCSP packet
bcsp_recv: Out-of-order packet arrived, got 7 expected 6
bcsp_recv: Out-of-order packet arrived, got 0 expected 6
bcsp_recv: Out-of-order packet arrived, got 1 expected 6
bcsp_recv: Error in BCSP hdr checksum
At some point I'll investigate -- I thought we were supposed to be using
flow control so that really shouldn't happen. But more concerning is the
fact that this leads to silent corruption in network traffic -- we seem
to be bypassing checksums on packets received by BNEP. Let's not do
that:
--- net/bluetooth/bnep/core.c~ 2004-08-14 06:37:26.000000000 +0100
+++ net/bluetooth/bnep/core.c 2004-09-06 15:28:05.749950320 +0100
@@ -384,7 +384,7 @@
s->stats.rx_packets++;
nskb->dev = dev;
- nskb->ip_summed = CHECKSUM_UNNECESSARY;
+ nskb->ip_summed = CHECKSUM_NONE;
nskb->protocol = eth_type_trans(nskb, dev);
netif_rx_ni(nskb);
return 0;
--
dwmw2
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-06 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-06 15:02 [Bluez-devel] BNEP corruption David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox