diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1996-07-11 16:32:50 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1996-07-11 16:32:50 +0000 |
| commit | 2c37256e5a5909f395ae8cae19816e2e2818ca6f (patch) | |
| tree | 8c5d769659a79218ab7f5a25af062167216d07a1 /sys/netinet/tcp_timer.c | |
| parent | 2bbddfe5aea00d443b4e9eaa02db28250420bab8 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_timer.c')
| -rw-r--r-- | sys/netinet/tcp_timer.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 8fbac15bb6dc..a1c3d13a0df8 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 - * $Id: tcp_timer.c,v 1.16 1996/04/15 03:46:33 davidg Exp $ + * $Id: tcp_timer.c,v 1.17 1996/06/03 15:37:52 jdp Exp $ */ #ifndef TUBA_INCLUDE @@ -122,6 +122,9 @@ tcp_slowtimo() register struct tcpcb *tp; register int i; int s; +#ifdef TCPDEBUG + int ostate; +#endif s = splnet(); @@ -142,10 +145,19 @@ tcp_slowtimo() continue; for (i = 0; i < TCPT_NTIMERS; i++) { if (tp->t_timer[i] && --tp->t_timer[i] == 0) { - if (tcp_usrreq(tp->t_inpcb->inp_socket, - PRU_SLOWTIMO, (struct mbuf *)0, - (struct mbuf *)i, (struct mbuf *)0) == NULL) +#ifdef TCPDEBUG + ostate = tp->t_state; +#endif + tp = tcp_timers(tp, i); + if (tp == NULL) goto tpgone; +#ifdef TCPDEBUG + if (tp->t_inpcb->inp_socket->so_options + & SO_DEBUG) + tcp_trace(TA_USER, ostate, tp, + (struct tcpiphdr *)0, + PRU_SLOWTIMO); +#endif } } tp->t_idle++; |
