All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Phil Oester <kernel@linuxace.com>
Cc: netfilter-devel@lists.netfilter.org,
	Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Subject: Re: [PATCH] Resend: TCP window tracking fixes
Date: Wed, 02 Feb 2005 00:45:19 +0100	[thread overview]
Message-ID: <4200148F.70004@trash.net> (raw)
In-Reply-To: <20050201232504.GA27476@linuxace.com>

Phil Oester wrote:

>Resending two patches which have not yet made it to mainline, and
>which (IMO) are fairly important and should go in before 2.6.11.
>
>1) retransmission handling -- window tracking needs to look at both
>   seq numbers in determining whether a retransmission has occurred
>
>   http://lists.netfilter.org/pipermail/netfilter-devel/2005-January/018241.html
>
>2) over-window handling -- window tracking should not adjust down
>   the maximum seq number which it thinks a client has received --
>   the client may disagree with this number
>
>   http://lists.netfilter.org/pipermail/netfilter-devel/2005-January/018278.html
>
>Patches attached below, comments welcomed.
>
I already have the retransmission handling patch queued, I'm just
a little behind with pushing it to Dave. I would like to hear
Jozsef's opinion before applying your second patch, he knows the
code much better than me. Jozsef, does the second patch look ok
to you ?

Regards
Patrick


>Phil
>
>
>  
>
>------------------------------------------------------------------------
>
>diff -ru linux-orig/net/ipv4/netfilter/ip_conntrack_proto_tcp.c linux-testdellfw/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
>--- linux-orig/net/ipv4/netfilter/ip_conntrack_proto_tcp.c	2005-01-28 17:48:10.620973992 -0500
>+++ linux-testdellfw/net/ipv4/netfilter/ip_conntrack_proto_tcp.c	2005-01-28 17:54:02.799434728 -0500
>@@ -622,7 +622,6 @@
> 	/* Ignore data over the right edge of the receiver's window. */
> 	if (after(end, sender->td_maxend) &&
> 	    before(seq, sender->td_maxend)) {
>-		end = sender->td_maxend;
> 		if (*index == TCP_FIN_SET)
> 			*index = TCP_ACK_SET;
> 	}
>@@ -691,9 +690,9 @@
> 			after(seq, sender->td_end - receiver->td_maxwin - 1) ?
> 			before(sack, receiver->td_end + 1) ?
> 			after(ack, receiver->td_end - MAXACKWINDOW(sender)) ? "BUG"
>-			: "ACK is under the lower bound (possibly overly delayed ACK)"
>-			: "ACK is over the upper bound (ACKed data has never seen yet)"
>-			: "SEQ is under the lower bound (retransmitted already ACKed data)"
>+			: "ACK is under the lower bound (possible overly delayed ACK)"
>+			: "ACK is over the upper bound (ACKed data not seen yet)"
>+			: "SEQ is under the lower bound (already ACKed data retransmitted)"
> 			: "SEQ is over the upper bound (over the window of the receiver)");
> 
> 		res = ip_ct_tcp_be_liberal && !tcph->rst;
>  
>

      reply	other threads:[~2005-02-01 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-01 23:25 [PATCH] Resend: TCP window tracking fixes Phil Oester
2005-02-01 23:45 ` Patrick McHardy [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=4200148F.70004@trash.net \
    --to=kaber@trash.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=kernel@linuxace.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.