Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Add explicit initialization of TCP timer state. ...



details:   https://anonhg.NetBSD.org/src/rev/fc4d11f3b92f
branches:  trunk
changeset: 514798:fc4d11f3b92f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Sep 10 20:19:54 2001 +0000

description:
Add explicit initialization of TCP timer state.  A noop right now.

diffstat:

 sys/netinet/tcp_subr.c  |  5 ++++-
 sys/netinet/tcp_timer.h |  7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 6040abb2cb19 -r fc4d11f3b92f sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c    Mon Sep 10 20:16:46 2001 +0000
+++ b/sys/netinet/tcp_subr.c    Mon Sep 10 20:19:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_subr.c,v 1.115 2001/09/10 04:24:24 thorpej Exp $   */
+/*     $NetBSD: tcp_subr.c,v 1.116 2001/09/10 20:19:54 thorpej Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -784,6 +784,7 @@
        void *aux;
 {
        struct tcpcb *tp;
+       int i;
 
        switch (family) {
        case PF_INET:
@@ -809,6 +810,8 @@
        LIST_INIT(&tp->t_sc);
 
        callout_init(&tp->t_delack_ch);
+       for (i = 0; i < TCPT_NTIMERS; i++)
+               TCP_TIMER_INIT(tp, i);
 
        tp->t_flags = 0;
        if (tcp_do_rfc1323 && tcp_do_win_scale)
diff -r 6040abb2cb19 -r fc4d11f3b92f sys/netinet/tcp_timer.h
--- a/sys/netinet/tcp_timer.h   Mon Sep 10 20:16:46 2001 +0000
+++ b/sys/netinet/tcp_timer.h   Mon Sep 10 20:19:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_timer.h,v 1.12 2001/09/10 20:15:14 thorpej Exp $   */
+/*     $NetBSD: tcp_timer.h,v 1.13 2001/09/10 20:19:54 thorpej Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -116,8 +116,11 @@
 #endif
 
 /*
- * Arm, disarm, and test TCP timers.
+ * Init, arm, disarm, and test TCP timers.
  */
+#define        TCP_TIMER_INIT(tp, timer) \
+       /* Nothing. */
+
 #define        TCP_TIMER_ARM(tp, timer, nticks) \
        PRT_SLOW_ARM((tp)->t_timer[(timer)], (nticks))
 



Home | Main Index | Thread Index | Old Index