From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Sundberg Subject: Re: Checksum of IP header Date: Sun, 26 Jun 2005 20:13:33 +0200 Message-ID: <42BEF04D.8040708@ingate.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: John Que In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org John Que wrote: > Namely, what I change is : > skb->nh.iph->daddr = newIPAddress (in u32 ). > > Everything works OK and the packets are sent to the new > destination as I can see with the sniffer; except foo the csum. Have a look at the ip_nat_cheat_check() function in ip_nat_core.c - it does exactly what you want. //Marcus -- ---------------------------------------+-------------------------- Marcus Sundberg | Firewalls with SIP & NAT Software Developer, Ingate Systems AB | http://www.ingate.com/