xref: /freebsd/sbin/ipf/libipf/printtqtable.c (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1 /*
2  * Copyright (C) 2012 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  */
6 
7 #include <fcntl.h>
8 #include <sys/ioctl.h>
9 #include "ipf.h"
10 
11 
12 void
13 printtqtable(ipftq_t *table)
14 {
15 	int i;
16 
17 	PRINTF("TCP Entries per state\n");
18 	for (i = 0; i < IPF_TCP_NSTATES; i++)
19 		PRINTF(" %5d", i);
20 	PRINTF("\n");
21 
22 	for (i = 0; i < IPF_TCP_NSTATES; i++)
23 		PRINTF(" %5d", table[i].ifq_ref - 1);
24 	PRINTF("\n");
25 }
26