efeb8bffe3
Convert ipfilter userland function declarations from K&R to ANSI. This syncs our function declarations with NetBSD hg commit 75edcd7552a0 (apply our changes). Though not copied from NetBSD, this change was partially inspired by NetBSD's work and inspired by style(9). Reviewed by: glebius (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33595
26 lines
422 B
C
26 lines
422 B
C
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*/
|
|
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
#include "ipf.h"
|
|
|
|
|
|
void
|
|
printtqtable(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");
|
|
}
|