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
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.
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]
23 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _IPP_IPP_CONFIG_H
28 #define _IPP_IPP_CONFIG_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
37 * ipp action modules configuration type codes
40 #define IPP_CONFIG_TYPE "ipp.config_type" /* byte */
45 * Classifier configuration type codes.
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
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"
60 /* all actions generic parameters */
61 #define IPP_ACTION_STATS_ENABLE "ipp.action_stats"
62 #define IPP_MODULE_VERSION "ipp.module_version"
65 * Record configuration object ownership
67 #define IPP_CONFIG_ORIGINATOR "ipp.originator"
69 #define IPP_CONFIG_PERMANENT 0x00000000
70 #define IPP_CONFIG_IPQOSCONF 0x00000001
71 #define IPP_CONFIG_FTPCL 0x00000002
73 #define IPP_CONFIG_NAME_PERMANENT "permanent"
74 #define IPP_CONFIG_NAME_IPQOSCONF "ipqosconf"
75 #define IPP_CONFIG_NAME_FTPCL "ftpcl"
78 * macros to extract the major and minor version from a module version
81 #define IPP_MAJOR_MODULE_VER(ver) (ver / 10000)
82 #define IPP_MINOR_MODULE_VER(ver) (ver % 10000)
88 #endif /* _IPP_IPP_CONFIG_H */