]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/lib/printtqtable.c
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / lib / printtqtable.c
1 /*
2  * Copyright (C) 2007 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 printtqtable(table)
13 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 }