printdstlistpolicy.c (41edb306f05651fcaf6c74f9e3557f59f80292e1) | printdstlistpolicy.c (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 10void | 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 10void |
11printdstlistpolicy(policy) 12 ippool_policy_t policy; | 11printdstlistpolicy(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} | 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} |