From: Marcus Sundberg <marcus@ingate.com>
To: John Que <qwejohn@gmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Checksum of IP header
Date: Sun, 26 Jun 2005 20:13:33 +0200 [thread overview]
Message-ID: <42BEF04D.8040708@ingate.com> (raw)
In-Reply-To: <ada605fb050626041856c71794@mail.gmail.com>
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 <marcus@ingate.com> | Firewalls with SIP & NAT
Software Developer, Ingate Systems AB | http://www.ingate.com/
next prev parent reply other threads:[~2005-06-26 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-26 11:18 Checksum of IP header John Que
2005-06-26 18:13 ` Marcus Sundberg [this message]
2005-06-27 14:43 ` Kirk
2005-06-28 11:40 ` Nagy Zoltan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42BEF04D.8040708@ingate.com \
--to=marcus@ingate.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=qwejohn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.