NetBSD/dist/ipf/lib/printtqtable.c

28 lines
504 B
C
Raw Normal View History

/* $NetBSD: printtqtable.c,v 1.1.1.2 2008/05/20 06:45:04 darrenr Exp $ */
2007-05-16 02:26:02 +04:00
/*
* Copyright (C) 2007 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*/
#include <fcntl.h>
#include <sys/ioctl.h>
#include "ipf.h"
void printtqtable(table)
ipftq_t *table;
{
int i;
printf("TCP Entries per state\n");
for (i = 0; i < IPF_TCP_NSTATES; i++)
printf(" %5d", i);
printf("\n");
for (i = 0; i < IPF_TCP_NSTATES; i++)
printf(" %5d", table[i].ifq_ref - 1);
printf("\n");
}