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(int unit) 12 { 13 14 switch (unit) 15 { 16 case IPL_LOGIPF : 17 PRINTF("ipf"); 18 break; 19 case IPL_LOGNAT : 20 PRINTF("nat"); 21 break; 22 case IPL_LOGSTATE : 23 PRINTF("state"); 24 break; 25 case IPL_LOGAUTH : 26 PRINTF("auth"); 27 break; 28 case IPL_LOGSYNC : 29 PRINTF("sync"); 30 break; 31 case IPL_LOGSCAN : 32 PRINTF("scan"); 33 break; 34 case IPL_LOGLOOKUP : 35 PRINTF("lookup"); 36 break; 37 case IPL_LOGCOUNT : 38 PRINTF("count"); 39 break; 40 case IPL_LOGALL : 41 PRINTF("all"); 42 break; 43 default : 44 PRINTF("unknown(%d)", unit); 45 } 46 } 47