printunit.c revision 254219
1254219Scy/* 2254219Scy * Copyright (C) 2012 by Darren Reed. 3254219Scy * 4254219Scy * See the IPFILTER.LICENCE file for details on licencing. 5254219Scy */ 6254219Scy 7254219Scy#include "ipf.h" 8254219Scy 9254219Scy 10254219Scyvoid 11254219Scyprintunit(unit) 12254219Scy int unit; 13254219Scy{ 14254219Scy 15254219Scy switch (unit) 16254219Scy { 17254219Scy case IPL_LOGIPF : 18254219Scy PRINTF("ipf"); 19254219Scy break; 20254219Scy case IPL_LOGNAT : 21254219Scy PRINTF("nat"); 22254219Scy break; 23254219Scy case IPL_LOGSTATE : 24254219Scy PRINTF("state"); 25254219Scy break; 26254219Scy case IPL_LOGAUTH : 27254219Scy PRINTF("auth"); 28254219Scy break; 29254219Scy case IPL_LOGSYNC : 30254219Scy PRINTF("sync"); 31254219Scy break; 32254219Scy case IPL_LOGSCAN : 33254219Scy PRINTF("scan"); 34254219Scy break; 35254219Scy case IPL_LOGLOOKUP : 36254219Scy PRINTF("lookup"); 37254219Scy break; 38254219Scy case IPL_LOGCOUNT : 39254219Scy PRINTF("count"); 40254219Scy break; 41254219Scy case IPL_LOGALL : 42254219Scy PRINTF("all"); 43254219Scy break; 44254219Scy default : 45254219Scy PRINTF("unknown(%d)", unit); 46254219Scy } 47254219Scy} 48