Skip to contentSkip to conversation

NetFilter NF_IP_FORWARD Hook

DISCUSSION Raja Reddy 1 participant 1 message Apr 2, 2003 netfilter

lore
Share & tools
lore

Raja Reddy

author
#0 lore raw

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