xref: /freebsd/sbin/ipf/libipf/printunit.c (revision b3d14eaccc5f606690d99b1998bfdf32a22404f6)
1 /*
2  * Copyright (C) 2012 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  */
6 
7 #include "ipf.h"
8 
9 
10 void
11 printunit(unit)
12 	int unit;
13 {
14 
15 	switch (unit)
16 	{
17 	case IPL_LOGIPF :
18 		PRINTF("ipf");
19 		break;
20 	case IPL_LOGNAT :
21 		PRINTF("nat");
22 		break;
23 	case IPL_LOGSTATE :
24 		PRINTF("state");
25 		break;
26 	case IPL_LOGAUTH :
27 		PRINTF("auth");
28 		break;
29 	case IPL_LOGSYNC :
30 		PRINTF("sync");
31 		break;
32 	case IPL_LOGSCAN :
33 		PRINTF("scan");
34 		break;
35 	case IPL_LOGLOOKUP :
36 		PRINTF("lookup");
37 		break;
38 	case IPL_LOGCOUNT :
39 		PRINTF("count");
40 		break;
41 	case IPL_LOGALL :
42 		PRINTF("all");
43 		break;
44 	default :
45 		PRINTF("unknown(%d)", unit);
46 	}
47 }
48