src/backend.c
const char *backend_lb_algo_str(int algo) {

	if (algo == BE_LB_ALGO_RR)
		return "roundrobin";
	else if (algo == BE_LB_ALGO_SRR)
		return "static-rr";
	else if (algo == BE_LB_ALGO_FAS)
		return "first";
	else if (algo == BE_LB_ALGO_LC)
		return "leastconn";
	else if (algo == BE_LB_ALGO_SH)
		return "source";
	else if (algo == BE_LB_ALGO_UH)
		return "uri";
	else if (algo == BE_LB_ALGO_PH)
		return "url_param";
	else if (algo == BE_LB_ALGO_HH)
		return "hdr";
	else if (algo == BE_LB_ALGO_RCH)
		return "rdp-cookie";
	else
		return NULL;
}
/*
 * This function returns a string containing the balancing
 * mode of the proxy in a format suitable for stats.
 */
This function returns a string containing the balancing
mode of the proxy in a format suitable for stats.
This function returns a string containing the balancing mode of the proxy in a format suitable for stats .
const char *backend_lb_algo_str(int algo) {
	if (algo == BE_LB_ALGO_RR)
		return "roundrobin";
	else if (algo == BE_LB_ALGO_SRR)
		return "static-rr";
	else if (algo == BE_LB_ALGO_FAS)
		return "first";
	else if (algo == BE_LB_ALGO_LC)
		return "leastconn";
	else if (algo == BE_LB_ALGO_SH)
		return "source";
	else if (algo == BE_LB_ALGO_UH)
		return "uri";
	else if (algo == BE_LB_ALGO_PH)
		return "url_param";
	else if (algo == BE_LB_ALGO_HH)
		return "hdr";
	else if (algo == BE_LB_ALGO_RCH)
		return "rdp-cookie";
	else
		return NULL;
}
const char * backend_lb_algo_str ( int algo ) { if ( algo == BE_LB_ALGO_RR ) return " " ; else if ( algo == BE_LB_ALGO_SRR ) return " " ; else if ( algo == BE_LB_ALGO_FAS ) return " " ; else if ( algo == BE_LB_ALGO_LC ) return " " ; else if ( algo == BE_LB_ALGO_SH ) return " " ; else if ( algo == BE_LB_ALGO_UH ) return " " ; else if ( algo == BE_LB_ALGO_PH ) return " " ; else if ( algo == BE_LB_ALGO_HH ) return " " ; else if ( algo == BE_LB_ALGO_RCH ) return " " ; else return NULL ; }
This function returns a string containing the balancing
 mode of the proxy in a format suitable for stats.
This function returns a string containing the balancing mode of the proxy in a format suitable for stats .