1301169Slidl/* $NetBSD: internal.h,v 1.14 2016/04/04 15:52:56 christos Exp $ */ 2301169Slidl 3301169Slidl/*- 4301169Slidl * Copyright (c) 2015 The NetBSD Foundation, Inc. 5301169Slidl * All rights reserved. 6301169Slidl * 7301169Slidl * This code is derived from software contributed to The NetBSD Foundation 8301169Slidl * by Christos Zoulas. 9301169Slidl * 10301169Slidl * Redistribution and use in source and binary forms, with or without 11301169Slidl * modification, are permitted provided that the following conditions 12301169Slidl * are met: 13301169Slidl * 1. Redistributions of source code must retain the above copyright 14301169Slidl * notice, this list of conditions and the following disclaimer. 15301169Slidl * 2. Redistributions in binary form must reproduce the above copyright 16301169Slidl * notice, this list of conditions and the following disclaimer in the 17301169Slidl * documentation and/or other materials provided with the distribution. 18301169Slidl * 19301169Slidl * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20301169Slidl * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21301169Slidl * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22301169Slidl * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23301169Slidl * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24301169Slidl * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25301169Slidl * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26301169Slidl * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27301169Slidl * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28301169Slidl * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29301169Slidl * POSSIBILITY OF SUCH DAMAGE. 30301169Slidl */ 31301169Slidl#ifndef _INTERNAL_H 32301169Slidl#define _INTERNAL_H 33301169Slidl 34301169Slidl#ifndef _PATH_BLCONF 35301169Slidl#define _PATH_BLCONF "/etc/blacklistd.conf" 36301169Slidl#endif 37301169Slidl#ifndef _PATH_BLCONTROL 38301169Slidl#define _PATH_BLCONTROL "/libexec/blacklistd-helper" 39301169Slidl#endif 40301169Slidl#ifndef _PATH_BLSTATE 41301169Slidl#define _PATH_BLSTATE "/var/db/blacklistd.db" 42301169Slidl#endif 43301169Slidl 44301169Slidlextern struct confset rconf, lconf; 45301169Slidlextern int debug; 46301169Slidlextern const char *rulename; 47301169Slidlextern const char *controlprog; 48301169Slidlextern struct ifaddrs *ifas; 49301169Slidl 50301169Slidl#if !defined(__syslog_attribute__) && !defined(__syslog__) 51301169Slidl#define __syslog__ __printf__ 52301169Slidl#endif 53301169Slidl 54301169Slidlextern void (*lfun)(int, const char *, ...) 55301169Slidl __attribute__((__format__(__syslog__, 2, 3))); 56301169Slidl 57301169Slidl#endif /* _INTERNAL_H */ 58