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