public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Fabrice MARIE <fabrice@celestix.com>
To: "Shipman, Jeffrey E" <jeshipm@sandia.gov>,
	"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: TCP checksum?
Date: Fri, 14 Jun 2002 11:51:14 +0800	[thread overview]
Message-ID: <200206141151.14032.fabrice@celestix.com> (raw)
In-Reply-To: <03781128C7B74B4DBC27C55859C9D73809840636@es06snlnt>


Hello Jeffrey,

On Thursday 13 June 2002 23:10, Shipman, Jeffrey E wrote:
> 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?
> [...]

This functionallity is already provided by the ipt_MIRROR target.

If you want more info on netfilter module writting, read Rusty's
Netfilter Hacking HOWTO at :
http://www.netfilter.org/documentation/index.html#HOWTO
and if needed, post netfilter development questions on the
netfilter-devel mailing list, for more info :
http://www.netfilter.org/contact.html#devlist

Have a nice day,

Fabrice.
--
Fabrice MARIE
Senior R&D Engineer
Celestix Networks
http://www.celestix.com/

"Silly hacker, root is for administrators"
       -Unknown

  parent reply	other threads:[~2002-06-14  2:56 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
2002-06-13 15:34 ` Padraig Brady
2002-06-14  3:51 ` Fabrice MARIE [this message]
  -- 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=200206141151.14032.fabrice@celestix.com \
    --to=fabrice@celestix.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox