Displaying 4 results from an estimated 4 matches for "proto_csum_blank".
2006 May 09
4
[PATCH] Fix checksum errors when firewalling in domU
Another checksum offload problem was reported on xen-users, when using a
domU as a firewall:
http://lists.xensource.com/archives/html/xen-users/2006-04/msg01150.html
It also fails without VLANs.
The path from dom0->domU with ip_summed==CHECKSUM_HW/proto_csum_blank==1
is broken.
- skb_checksum_setup() assumes that a checksum will definitely be
calculated in dev_queue_xmit(), but
the destination device is netback, which is advertising NETIF_F_IP_CSUM
---> no checksum. So,
added reset_proto_csum_blank() to skbuff.h, and call it in
dev_queue_xmit()...
2005 Oct 14
5
[PATCH] Fix NAT for domU checksum offload
..._buff **pskb,
newport = tuple->dst.u.udp.port;
portptr = &hdr->dest;
}
- if (hdr->check) /* 0 is a special case meaning no checksum */
- hdr->check = ip_nat_cheat_check(~oldip, newip,
+
+ if (hdr->check) { /* 0 is a special case meaning no checksum */
+ if ((*pskb)->proto_csum_blank) {
+ hdr->check = ip_nat_cheat_check(oldip, ~newip,
+ ip_nat_cheat_check(*portptr ^ 0xFFFF,
+ newport, hdr->check));
+ } else {
+ hdr->check = ip_nat_cheat_check(~oldip, newip,
ip_nat_cheat_check(*portptr ^ 0xFFFF,
newport,
hdr->check));
+ }...
2006 Feb 22
0
Re: [PATCH] Fix IPSec for Xen checksum offload packets (Jon Mason)
...(skb, GFP_ATOMIC))
>- goto out_kfree_skb;
>-
> #ifdef CONFIG_XEN
>- /* If a checksum-deferred packet is forwarded to a device that needs a
>- * checksum, correct the pointers and force checksumming.
>- */
>+int xen_checksum_setup(struct sk_buff *skb)
>+{
> if (skb->proto_csum_blank) {
>+ skb->proto_csum_blank = 0;
> if (skb->protocol != htons(ETH_P_IP))
>- goto out_kfree_skb;
>+ goto out;
> skb->h.raw = (unsigned char *)skb->nh.iph + 4*skb->nh.iph->ihl;
> if (skb->h.raw >= skb->tail)
>- goto out_kfree_skb;
>+ g...
2006 Apr 25
0
Pristine 2.6.16 kernel fails to build with hg9646 patches
...r/bin/make EXTRAVERSION=-1-xen-3.2.0-d0 ARCH=x86_64 \
bzImage
<snip>
CC [M] net/ipv4/netfilter/ip_nat_proto_tcp.o
net/ipv4/netfilter/ip_nat_proto_tcp.c: In function `tcp_manip_pkt':
net/ipv4/netfilter/ip_nat_proto_tcp.c:132: error: structure has no member
named `proto_csum_blank'
make[4]: *** [net/ipv4/netfilter/ip_nat_proto_tcp.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.16'
make: *** [stamp-build] Error 2
Attaching a would be reportbug below:...