xref: /titanic_41/usr/src/uts/common/inet/ipf/opts.h (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
13 
14 #ifndef	__OPTS_H__
15 #define	__OPTS_H__
16 
17 #ifndef	SOLARIS
18 #define	SOLARIS	(defined(sun) && (defined(__svr4__) || defined(__SVR4)))
19 #endif
20 #define	OPT_REMOVE	0x000001
21 #define	OPT_DEBUG	0x000002
22 #define	OPT_AUTHSTATS	0x000004
23 #define	OPT_RAW		0x000008
24 #define	OPT_LOG		0x000010
25 #define	OPT_SHOWLIST	0x000020
26 #define	OPT_VERBOSE	0x000040
27 #define	OPT_DONOTHING	0x000080
28 #define	OPT_HITS	0x000100
29 #define	OPT_BRIEF	0x000200
30 #define	OPT_ACCNT	0x000400
31 #define	OPT_FRSTATES	0x000800
32 #define	OPT_SHOWLINENO	0x001000
33 #define	OPT_PRINTFR	0x002000
34 #define	OPT_OUTQUE	FR_OUTQUE	/* 0x4000 */
35 #define	OPT_INQUE	FR_INQUE	/* 0x8000 */
36 #define	OPT_ZERORULEST	0x010000
37 #define	OPT_SAVEOUT	0x020000
38 #define	OPT_IPSTATES	0x040000
39 #define	OPT_INACTIVE	0x080000
40 #define	OPT_NAT		0x100000
41 #define	OPT_GROUPS	0x200000
42 #define	OPT_STATETOP	0x400000
43 #define	OPT_FLUSH	0x800000
44 #define	OPT_CLEAR	0x1000000
45 #define	OPT_HEX		0x2000000
46 #define	OPT_ASCII	0x4000000
47 #define	OPT_NORESOLVE	0x8000000
48 #define	OPT_UNDEF	0x10000000
49 
50 #define	OPT_STAT	OPT_FRSTATES
51 #define	OPT_LIST	OPT_SHOWLIST
52 
53 
54 #ifndef __P
55 # ifdef	__STDC__
56 #  define	__P(x)	x
57 # else
58 #  define	__P(x)	()
59 # endif
60 #endif
61 
62 #if defined(sun) && !SOLARIS
63 # define	STRERROR(x)	sys_errlist[x]
64 extern	char	*sys_errlist[];
65 #else
66 # define	STRERROR(x)	strerror(x)
67 #endif
68 
69 extern	int	opts;
70 
71 #endif /* __OPTS_H__ */
72