mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Olaf Dietsche <olaf+list.linux-kernel@olafdietsche.de>
To: Manjunath Prabhu <manjunath.mp@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: modify tcp header in the kernel
Date: Sat, 24 Jul 2004 12:41:59 +0200	[thread overview]
Message-ID: <87fz7h7klk.fsf@goat.bogus.local> (raw)
In-Reply-To: <2de46576040724030153d7877@mail.gmail.com> (Manjunath Prabhu's message of "Sat, 24 Jul 2004 15:31:01 +0530")

Manjunath Prabhu <manjunath.mp@gmail.com> writes:

> i am using the debian linux and am working on the 2.6.6 kernel.
> i want to access the tcp header, modify it (by passing it through my
> function) and then
> put it back for the regular flow to continue.
> can somebody tell me where i can access TCP header....
> this is what i think should be done.
>
> 1.will using (struct sk_buff*)skb->h.th be sufficient
> 2.using hook to divert the regular flow.
> 3.passing it to my function.
> 4.putting it back.

Maybe iptables is what you're searching for.

Another possibility would be Linux socket filtering. A short
description is in: Documentation/networking/filter.txt

Regards, Olaf.

      reply	other threads:[~2004-07-24 10:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-24 10:01 Manjunath Prabhu
2004-07-24 10:41 ` Olaf Dietsche [this message]

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=87fz7h7klk.fsf@goat.bogus.local \
    --to=olaf+list.linux-kernel@olafdietsche.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manjunath.mp@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®