netbsd/external/bsd/ipf/dist/lib/printdstlistpolicy.c
2013-04-06 16:48:33 +02:00

34 lines
535 B
C

/* $NetBSD: printdstlistpolicy.c,v 1.1.1.2 2012/07/22 13:44:40 darrenr Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*/
#include "ipf.h"
void
printdstlistpolicy(policy)
ippool_policy_t policy;
{
switch (policy)
{
case IPLDP_NONE :
PRINTF("none");
break;
case IPLDP_ROUNDROBIN :
PRINTF("round-robin");
break;
case IPLDP_CONNECTION :
PRINTF("weighting connection");
break;
case IPLDP_RANDOM :
PRINTF("random");
break;
default :
break;
}
}