xref: /freebsd/sbin/ipf/libipf/printtqtable.c (revision efeb8bffe34422937c7f8df836afb5b817366d16)
141edb306SCy Schubert /*
241edb306SCy Schubert  * Copyright (C) 2012 by Darren Reed.
341edb306SCy Schubert  *
441edb306SCy Schubert  * See the IPFILTER.LICENCE file for details on licencing.
541edb306SCy Schubert  */
641edb306SCy Schubert 
741edb306SCy Schubert #include <fcntl.h>
841edb306SCy Schubert #include <sys/ioctl.h>
941edb306SCy Schubert #include "ipf.h"
1041edb306SCy Schubert 
1141edb306SCy Schubert 
1241edb306SCy Schubert void
printtqtable(ipftq_t * table)13*efeb8bffSCy Schubert printtqtable(ipftq_t *table)
1441edb306SCy Schubert {
1541edb306SCy Schubert 	int i;
1641edb306SCy Schubert 
1741edb306SCy Schubert 	PRINTF("TCP Entries per state\n");
1841edb306SCy Schubert 	for (i = 0; i < IPF_TCP_NSTATES; i++)
1941edb306SCy Schubert 		PRINTF(" %5d", i);
2041edb306SCy Schubert 	PRINTF("\n");
2141edb306SCy Schubert 
2241edb306SCy Schubert 	for (i = 0; i < IPF_TCP_NSTATES; i++)
2341edb306SCy Schubert 		PRINTF(" %5d", table[i].ifq_ref - 1);
2441edb306SCy Schubert 	PRINTF("\n");
2541edb306SCy Schubert }
26