Revision 31a60e22 slirp/tcp_subr.c

b/slirp/tcp_subr.c
255 255
	if (TCPS_HAVERCVDSYN(tp->t_state)) {
256 256
		tp->t_state = TCPS_CLOSED;
257 257
		(void) tcp_output(tp);
258
		tcpstat.tcps_drops++;
258
		STAT(tcpstat.tcps_drops++);
259 259
	} else
260
		tcpstat.tcps_conndrops++;
260
		STAT(tcpstat.tcps_conndrops++);
261 261
/*	if (errno == ETIMEDOUT && tp->t_softerror)
262 262
 *		errno = tp->t_softerror;
263 263
 */
......
305 305
	sbfree(&so->so_rcv);
306 306
	sbfree(&so->so_snd);
307 307
	sofree(so);
308
	tcpstat.tcps_closed++;
308
	STAT(tcpstat.tcps_closed++);
309 309
	return ((struct tcpcb *)0);
310 310
}
311 311

  
......
528 528
 */
529 529

  
530 530
/*	soisconnecting(so); */ /* NOFDREF used instead */
531
	tcpstat.tcps_connattempt++;
531
	STAT(tcpstat.tcps_connattempt++);
532 532

  
533 533
	tp->t_state = TCPS_SYN_SENT;
534 534
	tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT;
......
857 857

  
858 858
                /*soisfconnecting(ns);*/
859 859

  
860
				tcpstat.tcps_connattempt++;
860
				STAT(tcpstat.tcps_connattempt++);
861 861

  
862 862
				tp->t_state = TCPS_SYN_SENT;
863 863
				tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT;

Also available in: Unified diff