xref: /freebsd/sbin/ipf/libipf/printdstlistpolicy.c (revision efeb8bffe34422937c7f8df836afb5b817366d16)
141edb306SCy Schubert /*
241edb306SCy Schubert  * Copyright (C) 2012 by Darren Reed.
341edb306SCy Schubert  *
441edb306SCy Schubert  * See the IPFILTER.LICENCE file for details on licencing.
541edb306SCy Schubert  */
641edb306SCy Schubert 
741edb306SCy Schubert #include "ipf.h"
841edb306SCy Schubert 
941edb306SCy Schubert 
1041edb306SCy Schubert void
printdstlistpolicy(ippool_policy_t policy)11*efeb8bffSCy Schubert printdstlistpolicy(ippool_policy_t policy)
1241edb306SCy Schubert {
1341edb306SCy Schubert 	switch (policy)
1441edb306SCy Schubert 	{
1541edb306SCy Schubert 	case IPLDP_NONE :
1641edb306SCy Schubert 		PRINTF("none");
1741edb306SCy Schubert 		break;
1841edb306SCy Schubert 	case IPLDP_ROUNDROBIN :
1941edb306SCy Schubert 		PRINTF("round-robin");
2041edb306SCy Schubert 		break;
2141edb306SCy Schubert 	case IPLDP_CONNECTION :
2241edb306SCy Schubert 		PRINTF("weighting connection");
2341edb306SCy Schubert 		break;
2441edb306SCy Schubert 	case IPLDP_RANDOM :
2541edb306SCy Schubert 		PRINTF("random");
2641edb306SCy Schubert 		break;
2741edb306SCy Schubert 	default :
2841edb306SCy Schubert 		break;
2941edb306SCy Schubert 	}
3041edb306SCy Schubert }
31