Convert ipfilter userland function declarations from K&R to ANSI. This syncs our function declarations with NetBSD hg commit 75edcd7552a0 (apply our changes). Though not copied from NetBSD, this change was partially inspired by NetBSD's work and inspired by style(9). Reviewed by: glebius (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33595
31 lines
445 B
C
31 lines
445 B
C
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*/
|
|
|
|
#include "ipf.h"
|
|
|
|
|
|
void
|
|
printdstlistpolicy(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;
|
|
}
|
|
}
|