LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH 06/12] ipvs: fix CHECKSUM_PARTIAL for TUN method

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: [PATCH 06/12] ipvs: fix CHECKSUM_PARTIAL for TUN method
Cc: lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Sun, 17 Oct 2010 16:29:40 +0300 (EEST)

        The recent change in IP_VS_XMIT_TUNNEL to set
CHECKSUM_NONE is not correct. After adding IPIP header
skb->csum becomes invalid but the CHECKSUM_PARTIAL
case must be supported. So, use skb_forward_csum() which is
most suitable for us to allow local clients to send IPIP
to remote real server.

Signed-off-by: Julian Anastasov <ja@xxxxxx>
---

diff -urp nf-next-2.6-a91fd26/linux/net/netfilter/ipvs/ip_vs_xmit.c 
linux/net/netfilter/ipvs/ip_vs_xmit.c
--- nf-next-2.6-a91fd26/linux/net/netfilter/ipvs/ip_vs_xmit.c   2010-10-16 
15:13:35.797354211 +0300
+++ linux/net/netfilter/ipvs/ip_vs_xmit.c       2010-10-16 16:32:34.292355032 
+0300
@@ -202,7 +202,7 @@ ip_vs_dst_reset(struct ip_vs_dest *dest)
                __ret = ip_vs_confirm_conntrack(skb, cp);       \
        if (__ret == NF_ACCEPT) {                               \
                nf_reset(skb);                                  \
-               (skb)->ip_summed = CHECKSUM_NONE;            \
+               skb_forward_csum(skb);                          \
        }                                                       \
        __ret;                                                  \
 })
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 06/12] ipvs: fix CHECKSUM_PARTIAL for TUN method, Julian Anastasov <=