mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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@us.ibm.com>
This commit is contained in:
1 parent
8168ebed05
commit
fbbeac4db8
1 file changed
+5
@@ -1283,6 +1283,11 @@ int dev_queue_xmit(struct sk_buff *skb)
|
||||
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)
|
||||
|
||||