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