]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ipfilter/lib/printdstlistpolicy.c
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ipfilter / lib / printdstlistpolicy.c
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 }