- 2.6.17 port work build breaks, but the patch set is relativly stable
[linux-flexiantxendom0-3.2.10.git] / net / ipv4 / netfilter / ip_nat_proto_tcp.c
index 35d1d90..425c926 100644 (file)
@@ -129,15 +129,14 @@ tcp_manip_pkt(struct sk_buff **pskb,
        if (hdrsize < sizeof(*hdr))
                return 1;
 
-#ifdef CONFIG_XEN
-       if ((*pskb)->proto_csum_blank)
+       if ((*pskb)->proto_csum_blank) {
                hdr->check = ip_nat_cheat_check(oldip, ~newip, hdr->check);
-       else
-#endif
+       } else {
                hdr->check = ip_nat_cheat_check(~oldip, newip,
                                        ip_nat_cheat_check(oldport ^ 0xFFFF,
                                                           newport,
                                                           hdr->check));
+       }
        return 1;
 }