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