141edb306SCy Schubert 241edb306SCy Schubert /* 341edb306SCy Schubert * Copyright (C) 2012 by Darren Reed. 441edb306SCy Schubert * 541edb306SCy Schubert * See the IPFILTER.LICENCE file for details on licencing. 641edb306SCy Schubert * 741edb306SCy Schubert * $Id$ 841edb306SCy Schubert */ 941edb306SCy Schubert 1041edb306SCy Schubert #ifndef __OPTS_H__ 1141edb306SCy Schubert #define __OPTS_H__ 1241edb306SCy Schubert 1341edb306SCy Schubert #ifndef SOLARIS 1441edb306SCy Schubert # if defined(sun) && (defined(__svr4__) || defined(__SVR4)) 1541edb306SCy Schubert # define SOLARIS 1 1641edb306SCy Schubert # else 1741edb306SCy Schubert # define SOLARIS 0 1841edb306SCy Schubert # endif 1941edb306SCy Schubert #endif 2041edb306SCy Schubert #define OPT_REMOVE 0x000001 2141edb306SCy Schubert #define OPT_DEBUG 0x000002 2241edb306SCy Schubert #define OPT_AUTHSTATS 0x000004 2341edb306SCy Schubert #define OPT_RAW 0x000008 2441edb306SCy Schubert #define OPT_LOG 0x000010 2541edb306SCy Schubert #define OPT_SHOWLIST 0x000020 2641edb306SCy Schubert #define OPT_VERBOSE 0x000040 2741edb306SCy Schubert #define OPT_DONOTHING 0x000080 2841edb306SCy Schubert #define OPT_HITS 0x000100 2941edb306SCy Schubert #define OPT_BRIEF 0x000200 3041edb306SCy Schubert #define OPT_ACCNT 0x000400 3141edb306SCy Schubert #define OPT_FRSTATES 0x000800 3241edb306SCy Schubert #define OPT_SHOWLINENO 0x001000 3341edb306SCy Schubert #define OPT_PRINTFR 0x002000 3441edb306SCy Schubert #define OPT_OUTQUE FR_OUTQUE /* 0x4000 */ 3541edb306SCy Schubert #define OPT_INQUE FR_INQUE /* 0x8000 */ 3641edb306SCy Schubert #define OPT_ZERORULEST 0x010000 3741edb306SCy Schubert #define OPT_SAVEOUT 0x020000 3841edb306SCy Schubert #define OPT_IPSTATES 0x040000 3941edb306SCy Schubert #define OPT_INACTIVE 0x080000 4041edb306SCy Schubert #define OPT_NAT 0x100000 4141edb306SCy Schubert #define OPT_GROUPS 0x200000 4241edb306SCy Schubert #define OPT_STATETOP 0x400000 4341edb306SCy Schubert #define OPT_FLUSH 0x800000 4441edb306SCy Schubert #define OPT_CLEAR 0x1000000 4541edb306SCy Schubert #define OPT_HEX 0x2000000 4641edb306SCy Schubert #define OPT_ASCII 0x4000000 4741edb306SCy Schubert #define OPT_NORESOLVE 0x8000000 4841edb306SCy Schubert #define OPT_DONTOPEN 0x10000000 4941edb306SCy Schubert #define OPT_PURGE 0x20000000 5041edb306SCy Schubert 5141edb306SCy Schubert #define OPT_STAT OPT_FRSTATES 5241edb306SCy Schubert #define OPT_LIST OPT_SHOWLIST 5341edb306SCy Schubert 5441edb306SCy Schubert 5541edb306SCy Schubert #ifndef __P 5641edb306SCy Schubert # define __P(x) x 5741edb306SCy Schubert #endif 5841edb306SCy Schubert 5941edb306SCy Schubert #if defined(sun) && !SOLARIS 6041edb306SCy Schubert # define STRERROR(x) sys_errlist[x] 6141edb306SCy Schubert extern char *sys_errlist[]; 6241edb306SCy Schubert #else 6341edb306SCy Schubert # define STRERROR(x) strerror(x) 6441edb306SCy Schubert #endif 6541edb306SCy Schubert 6641edb306SCy Schubert extern int opts; 6741edb306SCy Schubert 6841edb306SCy Schubert #endif /* __OPTS_H__ */ 69