Home | History | Annotate | Line # | Download | only in lib
      1 /*	$NetBSD: printdstlistpolicy.c,v 1.1.1.2 2012/07/22 13:44:40 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 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