From: Guillaume Morin <guillaume@morinfr.org>
To: "Shipman, Jeffrey E" <jeshipm@sandia.gov>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: TCP checksum?
Date: Thu, 13 Jun 2002 17:28:51 +0200 [thread overview]
Message-ID: <20020613152851.GA3442@morinfr.org> (raw)
In-Reply-To: <03781128C7B74B4DBC27C55859C9D73809840636@es06snlnt>
Dans un message du 13 jun à 9:10, Shipman, Jeffrey E écrivait :
>
> I'm looking for a function similar to skb_checksum(), but
> for the tcphdr->check field. I'm playing around with a module
> I've written for netfilter and I would like to modify options of
> the IP and TCP headers. For example, right now I'm trying
> to set the destination IP to the source IP, but the TCP checksum
> is coming out incorrectly. How can I calculate this checksum?
There is a netfilter function for that. Look at
ip_nat_core.c:ip_nat_cheat_check.
--
Guillaume Morin <guillaume@morinfr.org>
5 years from now everyone will be running free GNU on their
200 MIPS, 64M SPARCstation-5 (Andy Tanenbaum, 30 Jan 1992)
next prev parent reply other threads:[~2002-06-13 15:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-13 15:10 TCP checksum? Shipman, Jeffrey E
2002-06-13 15:28 ` Guillaume Morin [this message]
2002-06-13 15:34 ` Padraig Brady
2002-06-14 3:51 ` Fabrice MARIE
-- strict thread matches above, loose matches on Subject: below --
2002-06-13 19:58 Shipman, Jeffrey E
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=20020613152851.GA3442@morinfr.org \
--to=guillaume@morinfr.org \
--cc=jeshipm@sandia.gov \
--cc=linux-kernel@vger.kernel.org \
/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.