Home | History | Annotate | Line # | Download | only in lib
printdstlistpolicy.c revision 1.1
      1 /*	$NetBSD: printdstlistpolicy.c,v 1.1 2012/03/23 21:20:09 christos Exp $	*/
      2 
      3 /*
      4  * Copyright (C) 2009 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 printdstlistpolicy(policy)
     14 	ippool_policy_t policy;
     15 {
     16 	switch (policy)
     17 	{
     18 	case IPLDP_NONE :
     19 		PRINTF("none");
     20 		break;
     21 	case IPLDP_ROUNDROBIN :
     22 		PRINTF("round-robin");
     23 		break;
     24 	case IPLDP_CONNECTION :
     25 		PRINTF("weighting connection");
     26 		break;
     27 	case IPLDP_RANDOM :
     28 		PRINTF("random");
     29 		break;
     30 	default :
     31 		break;
     32 	}
     33 }
     34