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