netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net-2.6 [Patch 1/1][BUG-FIX] dccp: advancing the Ack window
@ 2010-11-23 12:36 Gerrit Renker
  2010-11-23 12:44 ` dccp-test-tree [RFC][Patch 1/1] dccp: requesting comments re updating ARP/neighbour table state Gerrit Renker
  2010-11-28 19:29 ` net-2.6 [Patch 1/1][BUG-FIX] dccp: advancing the Ack window David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Gerrit Renker @ 2010-11-23 12:36 UTC (permalink / raw)
  To: David Miller; +Cc: dccp, netdev

Dave,

please can you consider the following bug fix (applies on both net-2.6 and
net-next-2.6). I have no other dccp patches this week -- the second one that
follows is for the test tree only and is meant for RFC.

Best regards
Gerrit

(also on git://eden-feed.erg.abdn.ac.uk/net-next-2.6  [subtree 'dccp'])

>>>>>>>>>>>>>>>>>>>>>>>>>>>>  Patch / Fix <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
dccp: fix error in updating the GAR

This fixes a bug in updating the Greatest Acknowledgment number Received (GAR): 
the current implementation does not track the greatest received value -
lower values in the range AWL..AWH (RFC 4340, 7.5.1) erase higher ones.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
 net/dccp/input.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/net/dccp/input.c
+++ b/net/dccp/input.c
@@ -241,7 +241,8 @@ static int dccp_check_seqno(struct sock 
 		dccp_update_gsr(sk, seqno);
 
 		if (dh->dccph_type != DCCP_PKT_SYNC &&
-		    (ackno != DCCP_PKT_WITHOUT_ACK_SEQ))
+		    ackno != DCCP_PKT_WITHOUT_ACK_SEQ &&
+		    after48(ackno, dp->dccps_gar))
 			dp->dccps_gar = ackno;
 	} else {
 		unsigned long now = jiffies;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-28 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 12:36 net-2.6 [Patch 1/1][BUG-FIX] dccp: advancing the Ack window Gerrit Renker
2010-11-23 12:44 ` dccp-test-tree [RFC][Patch 1/1] dccp: requesting comments re updating ARP/neighbour table state Gerrit Renker
2010-11-28 19:29 ` net-2.6 [Patch 1/1][BUG-FIX] dccp: advancing the Ack window David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).