]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ipfilter/lib/printtqtable.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ipfilter / lib / printtqtable.c
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(table)
14         ipftq_t *table;
15 {
16         int i;
17
18         PRINTF("TCP Entries per state\n");
19         for (i = 0; i < IPF_TCP_NSTATES; i++)
20                 PRINTF(" %5d", i);
21         PRINTF("\n");
22
23         for (i = 0; i < IPF_TCP_NSTATES; i++)
24                 PRINTF(" %5d", table[i].ifq_ref - 1);
25         PRINTF("\n");
26 }