xref: /trueos/contrib/ipfilter/lib/printdstlistpolicy.c (revision d5d1038c7e8fb81fcbf4d3e4d444d685e4af1e4b)
1 /*
2  * Copyright (C) 2012 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  */
6 
7 #include "ipf.h"
8 
9 
10 void
printdstlistpolicy(policy)11 printdstlistpolicy(policy)
12 	ippool_policy_t policy;
13 {
14 	switch (policy)
15 	{
16 	case IPLDP_NONE :
17 		PRINTF("none");
18 		break;
19 	case IPLDP_ROUNDROBIN :
20 		PRINTF("round-robin");
21 		break;
22 	case IPLDP_CONNECTION :
23 		PRINTF("weighting connection");
24 		break;
25 	case IPLDP_RANDOM :
26 		PRINTF("random");
27 		break;
28 	default :
29 		break;
30 	}
31 }
32