xref: /titanic_50/usr/src/uts/common/ipp/ipp_config.h (revision 82d33c01b078ed404a986a369750cdb4743773fb)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * ipp action modules configuration type codes
38  */
39 
40 #define	IPP_CONFIG_TYPE	"ipp.config_type" /* byte */
41 
42 #define	IPP_SET				0x00
43 
44 /*
45  * Classifier configuration type codes.
46  */
47 #define	CLASSIFIER_ADD_FILTER		0x01
48 #define	CLASSIFIER_ADD_CLASS		0x02
49 #define	CLASSIFIER_REMOVE_FILTER	0x03
50 #define	CLASSIFIER_REMOVE_CLASS		0x04
51 #define	CLASSIFIER_MODIFY_FILTER	0x05
52 #define	CLASSIFIER_MODIFY_CLASS		0x06
53 
54 /* classifier generic parameters */
55 #define	CLASSIFIER_FILTER_NAME		"ipp.filter_name"
56 #define	CLASSIFIER_CLASS_NAME		"ipp.class_name"
57 #define	CLASSIFIER_NEXT_ACTION		"ipp.next_action_name"
58 #define	CLASSIFIER_CLASS_STATS_ENABLE	"ipp.class_stats"
59 
60 /* all actions generic parameters */
61 #define	IPP_ACTION_STATS_ENABLE		"ipp.action_stats"
62 #define	IPP_MODULE_VERSION		"ipp.module_version"
63 
64 /*
65  * Record configuration object ownership
66  */
67 #define	IPP_CONFIG_ORIGINATOR		"ipp.originator"
68 
69 #define	IPP_CONFIG_PERMANENT		0x00000000
70 #define	IPP_CONFIG_IPQOSCONF		0x00000001
71 #define	IPP_CONFIG_FTPCL		0x00000002
72 
73 #define	IPP_CONFIG_NAME_PERMANENT	"permanent"
74 #define	IPP_CONFIG_NAME_IPQOSCONF	"ipqosconf"
75 #define	IPP_CONFIG_NAME_FTPCL		"ftpcl"
76 
77 /*
78  * macros to extract the major and minor version from a module version
79  * integer encoding.
80  */
81 #define	IPP_MAJOR_MODULE_VER(ver)	(ver / 10000)
82 #define	IPP_MINOR_MODULE_VER(ver)	(ver % 10000)
83 
84 #ifdef	__cplusplus
85 }
86 #endif
87 
88 #endif /* _IPP_IPP_CONFIG_H */
89