]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ipfilter/lib/printunit.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ipfilter / lib / printunit.c
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 }