From: Chee Yong TAN <chee_yong_tan@hotmail.com>
To: netfilter-devel@lists.netfilter.org
Subject: Sending back out A TCP Packet from netfilter
Date: Mon, 23 Feb 2004 11:56:25 +0800 [thread overview]
Message-ID: <403979E9.8070300@hotmail.com> (raw)
Hi,
I need to do some mangling of a TCP packet at netfilter level and send
the packet out back to the sending host.Upon receiving the packet, my
module will check if the packet need to be send back to the sending host
after mangling.I tried using ip_send() to send back the packet but it
don't seem to work but when i do a tcpdump capture i manage to capture
the packet. I return a verdict of NF_STOLEN for the received packet. I
did invert the ip address, ports and the hardware address. I also
updated the sequence numbers in the header.
What is the proper procedure in getting the packet send out back to the
network ?
I need it to support both 2.2 and 2.4 kernels
Thanks in advance
Regards,
Chee Yong
next reply other threads:[~2004-02-23 3:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-23 3:56 Chee Yong TAN [this message]
2004-02-23 7:33 ` Sending back out A TCP Packet from netfilter Henrik Nordstrom
2004-02-23 12:14 ` Chee Yong TAN
2004-02-23 14:19 ` Henrik Nordstrom
2004-02-24 2:18 ` Chee Yong TAN
2004-02-24 7:00 ` Chee Yong TAN
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=403979E9.8070300@hotmail.com \
--to=chee_yong_tan@hotmail.com \
--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.