From: Raja Reddy Subject: NetFilter NF_IP_FORWARD Hook Date: Wed, 2 Apr 2003 03:57:17 -0800 (PST) Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20030402115717.90435.qmail@web13808.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1608271391-1049284637=:89090" Return-path: To: netfilter-devel@lists.netfilter.org Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --0-1608271391-1049284637=:89090 Content-Type: text/plain; charset=us-ascii Hello, I am developing a NetFilter Module. I have 2 (eth0,eth1) interfaces.I hooked at NF_IP_FORWARD. I changed destination address of the Packet (skb->nh.iph->saddr). After that i am getting problems. My Questions are.. 1. How to calculate skb->csum checksum. 2. How to calculate skb->h.th->check TCP Checksum. I gone throught the Netfilter source tree. But saw few lines of source. I got checksum errors when i applied. Please help me to solve this problem. Thanks in Advance, Keep Faith on the Supreme Lord Sri Sri Sri Krishna. He will take care of you. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more --0-1608271391-1049284637=:89090 Content-Type: text/html; charset=us-ascii

Hello,

  I am developing a NetFilter Module.  I have 2 (eth0,eth1) interfaces.I hooked at NF_IP_FORWARD.

I changed destination address of the Packet (skb->nh.iph->saddr).

After that i am getting problems. My Questions are..

1. How to calculate skb->csum checksum.

2. How to calculate skb->h.th->check TCP Checksum.

I gone throught the Netfilter source tree. But saw few  lines of source. I got checksum errors when i applied.

Please help me to solve this problem.

Thanks in Advance,



Keep Faith on the Supreme Lord Sri Sri Sri Krishna. He will take care of you.



Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more --0-1608271391-1049284637=:89090--