diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2009-04-11 22:07:19 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2009-04-11 22:07:19 +0000 |
| commit | 78b5071407e7f59724b2c3d3a4bd9f5cca1f0794 (patch) | |
| tree | d7e60241b428cfa595a3f0e0d467ee67548c9488 /sys/netinet/tcp_subr.c | |
| parent | 89f28b1b86dbe7c609f0fee96a7de233395cc37c (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index e566434f4752..d2d38a05eb6f 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -764,9 +764,9 @@ tcp_drop(struct tcpcb *tp, int errno) if (TCPS_HAVERCVDSYN(tp->t_state)) { tp->t_state = TCPS_CLOSED; (void) tcp_output_reset(tp); - V_tcpstat.tcps_drops++; + TCPSTAT_INC(tcps_drops); } else - V_tcpstat.tcps_conndrops++; + TCPSTAT_INC(tcps_conndrops); if (errno == ETIMEDOUT && tp->t_softerror) errno = tp->t_softerror; so->so_error = errno; @@ -889,7 +889,7 @@ tcp_close(struct tcpcb *tp) if (tp->t_state == TCPS_LISTEN) tcp_offload_listen_close(tp); in_pcbdrop(inp); - V_tcpstat.tcps_closed++; + TCPSTAT_INC(tcps_closed); KASSERT(inp->inp_socket != NULL, ("tcp_close: inp_socket NULL")); so = inp->inp_socket; soisdisconnected(so); @@ -1638,7 +1638,7 @@ tcp_mtudisc(struct inpcb *inp, int errno) tp->t_maxseg = so->so_snd.sb_hiwat; SOCKBUF_UNLOCK(&so->so_snd); - V_tcpstat.tcps_mturesent++; + TCPSTAT_INC(tcps_mturesent); tp->t_rtttime = 0; tp->snd_nxt = tp->snd_una; tcp_free_sackholes(tp); |
