1145519Sdarrenr/*	$FreeBSD$	*/
2145510Sdarrenr
3170268Sdarrenr/*
4255332Scy * Copyright (C) 2012 by Darren Reed.
5255332Scy *
6255332Scy * See the IPFILTER.LICENCE file for details on licencing.
7255332Scy *
8255332Scy * $Id$
9255332Scy */
10170268Sdarrenr
11145510Sdarrenr#include "ipf.h"
12145510Sdarrenr
13255332Scyvoid
14255332Scyprinttunable(tup)
15255332Scy	ipftune_t *tup;
16145510Sdarrenr{
17255332Scy	PRINTF("%s\tmin %lu\tmax %lu\tcurrent ",
18145510Sdarrenr		tup->ipft_name, tup->ipft_min, tup->ipft_max);
19145510Sdarrenr	if (tup->ipft_sz == sizeof(u_long))
20255332Scy		PRINTF("%lu\n", tup->ipft_vlong);
21145510Sdarrenr	else if (tup->ipft_sz == sizeof(u_int))
22255332Scy		PRINTF("%u\n", tup->ipft_vint);
23145510Sdarrenr	else if (tup->ipft_sz == sizeof(u_short))
24255332Scy		PRINTF("%hu\n", tup->ipft_vshort);
25145510Sdarrenr	else if (tup->ipft_sz == sizeof(u_char))
26255332Scy		PRINTF("%u\n", (u_int)tup->ipft_vchar);
27145510Sdarrenr	else {
28255332Scy		PRINTF("sz = %d\n", tup->ipft_sz);
29145510Sdarrenr	}
30145510Sdarrenr}
31