xref: /freebsd/sbin/ipf/libipf/printdstlistpolicy.c (revision efeb8bffe34422937c7f8df836afb5b817366d16)
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(ippool_policy_t policy)11 printdstlistpolicy(ippool_policy_t policy)
12 {
13 	switch (policy)
14 	{
15 	case IPLDP_NONE :
16 		PRINTF("none");
17 		break;
18 	case IPLDP_ROUNDROBIN :
19 		PRINTF("round-robin");
20 		break;
21 	case IPLDP_CONNECTION :
22 		PRINTF("weighting connection");
23 		break;
24 	case IPLDP_RANDOM :
25 		PRINTF("random");
26 		break;
27 	default :
28 		break;
29 	}
30 }
31