xref: /illumos-gate/usr/src/uts/common/ipp/ipp_config.h (revision 2d6eb4a5)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_IPP_IPP_CONFIG_H
28 #define	_IPP_IPP_CONFIG_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 /*
35  * ipp action modules configuration type codes
36  */
37 
38 #define	IPP_CONFIG_TYPE	"ipp.config_type" /* byte */
39 
40 #define	IPP_SET				0x00
41 
42 /*
43  * Classifier configuration type codes.
44  */
45 #define	CLASSIFIER_ADD_FILTER		0x01
46 #define	CLASSIFIER_ADD_CLASS		0x02
47 #define	CLASSIFIER_REMOVE_FILTER	0x03
48 #define	CLASSIFIER_REMOVE_CLASS		0x04
49 #define	CLASSIFIER_MODIFY_FILTER	0x05
50 #define	CLASSIFIER_MODIFY_CLASS		0x06
51 
52 /* classifier generic parameters */
53 #define	CLASSIFIER_FILTER_NAME		"ipp.filter_name"
54 #define	CLASSIFIER_CLASS_NAME		"ipp.class_name"
55 #define	CLASSIFIER_NEXT_ACTION		"ipp.next_action_name"
56 #define	CLASSIFIER_CLASS_STATS_ENABLE	"ipp.class_stats"
57 
58 /* all actions generic parameters */
59 #define	IPP_ACTION_STATS_ENABLE		"ipp.action_stats"
60 #define	IPP_MODULE_VERSION		"ipp.module_version"
61 
62 /*
63  * Record configuration object ownership
64  */
65 #define	IPP_CONFIG_ORIGINATOR		"ipp.originator"
66 
67 #define	IPP_CONFIG_PERMANENT		0x00000000
68 #define	IPP_CONFIG_IPQOSCONF		0x00000001
69 #define	IPP_CONFIG_FTPCL		0x00000002
70 
71 #define	IPP_CONFIG_NAME_PERMANENT	"permanent"
72 #define	IPP_CONFIG_NAME_IPQOSCONF	"ipqosconf"
73 #define	IPP_CONFIG_NAME_FTPCL		"ftpcl"
74 
75 /*
76  * macros to extract the major and minor version from a module version
77  * integer encoding.
78  */
79 #define	IPP_MAJOR_MODULE_VER(ver)	(ver / 10000)
80 #define	IPP_MINOR_MODULE_VER(ver)	(ver % 10000)
81 
82 #ifdef	__cplusplus
83 }
84 #endif
85 
86 #endif /* _IPP_IPP_CONFIG_H */
87