freebsd-nq/sbin/ipf/libipf/verbose.c
Cy Schubert 41edb306f0 ipfilter: Move userland bits to sbin
Through fixes and improvements our ipfilter sources have diverged
enough to warrant move from contrib into sbin/ipf. Now that I'm
planning on implementing MSS clamping as in iptables it makes more
sense to move ipfilter to sbin.

This is the second of three commits of the ipfilter move.

Suggested by glebius on two occaions.

Suggested by and discussed with:	glebius
Reviewed by:				glebius, kp (for #network)
MFC after:				1 month
Differential Revision:		https://reviews.freebsd.org/D33510
2021-12-20 06:16:33 -08:00

40 lines
511 B
C

/* $FreeBSD$ */
/*
* Copyright (C) 2012 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id$
*/
# include <stdarg.h>
#include <stdio.h>
#include "ipf.h"
#include "opts.h"
void verbose(int level, char *fmt, ...)
{
va_list pvar;
va_start(pvar, fmt);
if (opts & OPT_VERBOSE)
vprintf(fmt, pvar);
va_end(pvar);
}
void ipfkverbose(char *fmt, ...)
{
va_list pvar;
va_start(pvar, fmt);
if (opts & OPT_VERBOSE)
verbose(0x1fffffff, fmt, pvar);
va_end(pvar);
}