X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fnetfilter%2Fip_nat_proto_udp.c;fp=net%2Fipv4%2Fnetfilter%2Fip_nat_proto_udp.c;h=ec6053fdc867db4ae033e2e831f8c50a95e3c577;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=802ceb70dedd8eda51eb8c1b631ef5bd7551cd85;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/net/ipv4/netfilter/ip_nat_proto_udp.c b/net/ipv4/netfilter/ip_nat_proto_udp.c index 802ceb70d..ec6053fdc 100644 --- a/net/ipv4/netfilter/ip_nat_proto_udp.c +++ b/net/ipv4/netfilter/ip_nat_proto_udp.c @@ -114,12 +114,7 @@ udp_manip_pkt(struct sk_buff **pskb, portptr = &hdr->dest; } if (hdr->check) /* 0 is a special case meaning no checksum */ -#ifdef CONFIG_XEN - if ((*pskb)->proto_csum_blank) - hdr->check = ip_nat_cheat_check(oldip, ~newip, hdr->check); - else -#endif - hdr->check = ip_nat_cheat_check(~oldip, newip, + hdr->check = ip_nat_cheat_check(~oldip, newip, ip_nat_cheat_check(*portptr ^ 0xFFFF, newport, hdr->check));