Revision 3b46e624 slirp/debug.c

b/slirp/debug.c
192 192
	lprint("          %6d control (SYN/FIN/RST) packets\r\n", tcpstat.tcps_sndctrl);
193 193
	lprint("          %6d times tcp_output did nothing\r\n", tcpstat.tcps_didnuttin);
194 194

  
195
	lprint("  %6d packets received\r\n", tcpstat.tcps_rcvtotal);      
195
	lprint("  %6d packets received\r\n", tcpstat.tcps_rcvtotal);
196 196
	lprint("          %6d acks (for %d bytes)\r\n",
197 197
			tcpstat.tcps_rcvackpack, tcpstat.tcps_rcvackbyte);
198 198
	lprint("          %6d duplicate acks\r\n", tcpstat.tcps_rcvdupack);
......
302 302

  
303 303
	lprint(
304 304
	   "Proto[state]     Sock     Local Address, Port  Remote Address, Port RecvQ SendQ\r\n");
305
		
305

  
306 306
	for (so = tcb.so_next; so != &tcb; so = so->so_next) {
307
	
307

  
308 308
		n = sprintf(buff, "tcp[%s]", so->so_tcpcb?tcpstates[so->so_tcpcb->t_state]:"NONE");
309 309
		while (n < 17)
310 310
		   buff[n++] = ' ';
......
316 316
				inet_ntoa(so->so_faddr), ntohs(so->so_fport),
317 317
				so->so_rcv.sb_cc, so->so_snd.sb_cc);
318 318
	}
319
		  
319

  
320 320
	for (so = udb.so_next; so != &udb; so = so->so_next) {
321
	
321

  
322 322
		n = sprintf(buff, "udp[%d sec]", (so->so_expire - curtime) / 1000);
323 323
		while (n < 17)
324 324
		   buff[n++] = ' ';
......
347 347
		if (!dfd)
348 348
		   debug_init("slirp_stats", 0xf);
349 349
		lprint_arg = (char **)&dfd;
350
	
350

  
351 351
		ipstats();
352 352
		tcpstats();
353 353
		udpstats();

Also available in: Unified diff