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