1*ab25eeb5Syz /*
2*ab25eeb5Syz  * Copyright (C) 1993-2005  by Darren Reed.
3*ab25eeb5Syz  * See the IPFILTER.LICENCE file for details on licencing.
4*ab25eeb5Syz  */
5*ab25eeb5Syz 
6*ab25eeb5Syz #include "ipf.h"
7*ab25eeb5Syz 
printtunable(tup)8*ab25eeb5Syz void printtunable(tup)
9*ab25eeb5Syz ipftune_t *tup;
10*ab25eeb5Syz {
11*ab25eeb5Syz 	printf("%s\tmin %#lx\tmax %#lx\tcurrent ",
12*ab25eeb5Syz 		tup->ipft_name, tup->ipft_min, tup->ipft_max);
13*ab25eeb5Syz 	if (tup->ipft_sz == sizeof(u_long))
14*ab25eeb5Syz 		printf("%lu\n", tup->ipft_vlong);
15*ab25eeb5Syz 	else if (tup->ipft_sz == sizeof(u_int))
16*ab25eeb5Syz 		printf("%u\n", tup->ipft_vint);
17*ab25eeb5Syz 	else if (tup->ipft_sz == sizeof(u_short))
18*ab25eeb5Syz 		printf("%hu\n", tup->ipft_vshort);
19*ab25eeb5Syz 	else if (tup->ipft_sz == sizeof(u_char))
20*ab25eeb5Syz 		printf("%u\n", (u_int)tup->ipft_vchar);
21*ab25eeb5Syz 	else {
22*ab25eeb5Syz 		printf("sz = %d\n", tup->ipft_sz);
23*ab25eeb5Syz 	}
24*ab25eeb5Syz }
25