|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] While working bug #143, it came to my attention that no
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 9b7649651f497a218d333cab756edb31a5583ff8
# Parent 1e89d78f21c56a10d2be5e838f0fce89dd36055e
While working bug #143, it came to my attention that no verbose error is
loged if the dom0 kernel mangles a packet and tries to checksum
offload it.
This should let the user know what is going wrong (instead of silently
dropping the packet).
Signed-off-by: Jon Mason <jdmason@xxxxxxxxxx>
diff -r 1e89d78f21c5 -r 9b7649651f49 linux-2.6-xen-sparse/net/core/dev.c
--- a/linux-2.6-xen-sparse/net/core/dev.c Fri Dec 2 10:06:40 2005
+++ b/linux-2.6-xen-sparse/net/core/dev.c Fri Dec 2 10:08:24 2005
@@ -1283,6 +1283,11 @@
skb->csum = offsetof(struct udphdr, check);
break;
default:
+ if (net_ratelimit())
+ printk(KERN_ERR "Attempting to checksum a non-"
+ "TCP/UDP packet, dropping a protocol"
+ " %d packet", skb->nh.iph->protocol);
+ rc = -EPROTO;
goto out_kfree_skb;
}
if ((skb->h.raw + skb->csum + 2) > skb->tail)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] While working bug #143, it came to my attention that no verbose error is,
Xen patchbot -unstable <=
|
|
|
|
|