1 /* $FreeBSD: stable/9/contrib/ipfilter/opts.h 153881 2005-12-30 11:52:26Z guido $ */ 2 3 /* 4 * Copyright (C) 2000 by Darren Reed. 5 * 6 * See the IPFILTER.LICENCE file for details on licencing. 7 * 8 * $Id: opts.h,v 2.12 2003/08/14 14:24:27 darrenr Exp $ 9 */ 10 11 #ifndef __OPTS_H__ 12 #define __OPTS_H__ 13 14 #ifndef SOLARIS 15 #define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) 16 #endif 17 #define OPT_REMOVE 0x000001 18 #define OPT_DEBUG 0x000002 19 #define OPT_AUTHSTATS 0x000004 20 #define OPT_RAW 0x000008 21 #define OPT_LOG 0x000010 22 #define OPT_SHOWLIST 0x000020 23 #define OPT_VERBOSE 0x000040 24 #define OPT_DONOTHING 0x000080 25 #define OPT_HITS 0x000100 26 #define OPT_BRIEF 0x000200 27 #define OPT_ACCNT 0x000400 28 #define OPT_FRSTATES 0x000800 29 #define OPT_SHOWLINENO 0x001000 30 #define OPT_PRINTFR 0x002000 31 #define OPT_OUTQUE FR_OUTQUE /* 0x4000 */ 32 #define OPT_INQUE FR_INQUE /* 0x8000 */ 33 #define OPT_ZERORULEST 0x010000 34 #define OPT_SAVEOUT 0x020000 35 #define OPT_IPSTATES 0x040000 36 #define OPT_INACTIVE 0x080000 37 #define OPT_NAT 0x100000 38 #define OPT_GROUPS 0x200000 39 #define OPT_STATETOP 0x400000 40 #define OPT_FLUSH 0x800000 41 #define OPT_CLEAR 0x1000000 42 #define OPT_HEX 0x2000000 43 #define OPT_ASCII 0x4000000 44 #define OPT_NORESOLVE 0x8000000 45 46 #define OPT_STAT OPT_FRSTATES 47 #define OPT_LIST OPT_SHOWLIST 48 49 50 #ifndef __P 51 # ifdef __STDC__ 52 # define __P(x) x 53 # else 54 # define __P(x) () 55 # endif 56 #endif 57 58 #if defined(sun) && !SOLARIS 59 # define STRERROR(x) sys_errlist[x] 60 extern char *sys_errlist[]; 61 #else 62 # define STRERROR(x) strerror(x) 63 #endif 64 65 extern int opts; 66 67 #endif /* __OPTS_H__ */ 68