Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet tcp_sack_option: fix the cases that some sack bl...



details:   https://anonhg.NetBSD.org/src/rev/96123d006502
branches:  trunk
changeset: 574629:96123d006502
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Mar 07 10:27:39 2005 +0000

description:
tcp_sack_option: fix the cases that some sack blocks go into a hole.

diffstat:

 sys/netinet/tcp_sack.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r b707f75ca6b8 -r 96123d006502 sys/netinet/tcp_sack.c
--- a/sys/netinet/tcp_sack.c    Mon Mar 07 09:40:35 2005 +0000
+++ b/sys/netinet/tcp_sack.c    Mon Mar 07 10:27:39 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_sack.c,v 1.6 2005/03/07 09:40:35 yamt Exp $ */
+/* $NetBSD: tcp_sack.c,v 1.7 2005/03/07 10:27:39 yamt Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.6 2005/03/07 09:40:35 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.7 2005/03/07 10:27:39 yamt Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -330,7 +330,6 @@
                                /* Otherwise, move start of hole forward */
                                cur->start = sack->right;
                                cur->rxmit = SEQ_MAX(cur->rxmit, cur->start);
-                               cur = TAILQ_NEXT(cur, sackhole_q);
                                break;
                        }
 
@@ -361,7 +360,7 @@
                                cur->rxmit = SEQ_MIN(cur->rxmit, cur->end);
                                TAILQ_INSERT_AFTER(&tp->snd_holes, cur, tmp,
                                                sackhole_q);
-                               cur = TAILQ_NEXT(tmp, sackhole_q);
+                               cur = tmp;
                                break;
                        }
                }



Home | Main Index | Thread Index | Old Index