diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-04-05 20:27:36 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-04-05 20:27:36 +0000 |
commit | 1c426f1f218090a86478e6a9ab2db1bef88b1db7 (patch) | |
tree | 654a343090c994a4bab00987c1b8510ff7725efd /sys/netinet/tcp_input.c | |
parent | a6a8b68db3ab80dbf876cb629fcb89f25ab77f2b (diff) |
add tcp sack stats, similar to freebsd; ok deraadt
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index a55e411ed12..cc46ff0fef4 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.185 2005/03/12 08:07:09 markus Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.186 2005/04/05 20:27:35 markus Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -1629,7 +1629,7 @@ trimthenstep6: #if 1 /* TCP_ECN */ tcpstat.tcps_cwr_frecovery++; #endif - tcpstat.tcps_sndrexmitfast++; + tcpstat.tcps_sack_recovery_episode++; #if defined(TCP_SACK) && defined(TCP_FACK) tp->t_dupacks = tcprexmtthresh; (void) tcp_output(tp); @@ -2486,6 +2486,7 @@ tcp_sack_option(struct tcpcb *tp, struct tcphdr *th, u_char *cp, int optlen) /* Note: TCPOLEN_SACK must be 2*sizeof(tcp_seq) */ tmp_cp = cp + 2; tmp_olen = optlen - 2; + tcpstat.tcps_sack_rcv_opts++; if (tp->snd_numholes < 0) tp->snd_numholes = 0; if (tp->t_maxseg == 0) |