xref: /freebsd/sbin/ipf/libipf/printdstlistpolicy.c (revision b3d14eaccc5f606690d99b1998bfdf32a22404f6)
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
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