All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias DiPasquale <codeslinger@gmail.com>
To: linux-net <linux-net@vger.kernel.org>,
	nf-devel <netfilter-devel@lists.netfilter.org>
Subject: how to create a TCP packet w/data in interrupt context?
Date: Fri, 25 Mar 2005 09:30:06 -0500	[thread overview]
Message-ID: <876ef97a0503250630514919a8@mail.gmail.com> (raw)

Hi all,

I want to be able to create a TCP packet in an iptables rules, similar
to what REJECT --reject-with tcp-reset does, but this packet needs
some data to go in the payload. Is there some iptables rule or kernel
subsystem that already does this that I could look at for reference?
Or, does anyone have an idea of how I would go about doing this? I
already have a n RST that I am creating before this (a la REJECT), so
I figured I would just skb_copy_expand() that packet and add the
payload, but I'm not sure which fields in which structures need to be
updated when I do that.

I looked at pktgen, but that creates UDP packets. I also looked at the
TCP stack, but that copies its data from userland and I wasn't sure if
that series of operations would be the same from an iptables rule in
interrupt context. Anybody have any ideas on how to do this? Thanks.

-- 
[ Tobias DiPasquale ]
0x636f6465736c696e67657240676d61696c2e636f6d

                 reply	other threads:[~2005-03-25 14:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=876ef97a0503250630514919a8@mail.gmail.com \
    --to=codeslinger@gmail.com \
    --cc=linux-net@vger.kernel.org \
    --cc=netfilter-devel@lists.netfilter.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.