From: A K A <gello666@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: NF_STOLEN effect on TCP
Date: Tue, 11 Nov 2003 11:13:18 -0800 (PST) [thread overview]
Message-ID: <20031111191318.84468.qmail@web13114.mail.yahoo.com> (raw)
(include my address in the replies, i am not
subscribed to the list).
hello all,
Ok I have been stuck on this for tooo long and cant
figure it out. I have made an LKM which registers to
NF_POST_ROUTING hook. it gets a packet and if matches
a certain criterion then it puts it on to my private
Queue and returns NF_STOLEN. By putting the packet on
the Queue I am delaying the packets by arround 4 ms.
Now here is the problem for the case of a TCP packet:
A TCP SYN was selected to be delayed. So my hook
returns NF_STOLEN and the packet is sent 4 ms latter
using ip_send(), initated by an ioctl called from a
user application. next my host receives a syn+ack
and imediately sends an ack. However the first data
packet is sent out at a delay arround 4ms also. which
is very odd. cuz in the user application the send
function is called right after connect. I was
expecting only the syn packet to be affected because
of my delay, but there is some sort of reaction.
I dont think that its because of some RTT calculations
because when i send the SYN packet imdediately and
delay it at the peer then the first data packet goes
on fine.
Now I have been stuck with this damn thing for a long
while and cant figure out---is it the stealing that
results in this. is this some expected behavior of
TCP. .. please can u help me with this soon.
regards,
Asad
ps: i can send you a trace plot of the tcp seq vs time
as an attachment if you would like to see it.
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
next reply other threads:[~2003-11-11 19:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-11 19:13 A K A [this message]
2003-11-11 21:59 ` Problem with FORWARD hook Leonid Veytser
2003-11-11 22:06 ` Stuart J. Browne
2003-11-11 22:12 ` Antony Stone
2003-11-11 22:55 ` NF_QUEUE target and ip_queue.c Leonid Veytser
2003-11-21 20:15 ` Checksumming Issues Leonid Veytser
2003-11-21 20:27 ` Antony Stone
2003-11-12 0:40 ` Problem with FORWARD hook Leonid Veytser
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=20031111191318.84468.qmail@web13114.mail.yahoo.com \
--to=gello666@yahoo.com \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox