xref: /onnv-gate/usr/src/uts/common/ipp/ipgpc/ipgpc.h (revision 8485:633e5b5eb268)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*8485SPeter.Memishian@Sun.COM  * Common Development and Distribution License (the "License").
6*8485SPeter.Memishian@Sun.COM  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*8485SPeter.Memishian@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef	_IPP_IPGPC_IPGPC_H
270Sstevel@tonic-gate #define	_IPP_IPGPC_IPGPC_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #include <sys/types.h>
300Sstevel@tonic-gate #include <sys/kmem.h>
310Sstevel@tonic-gate #include <sys/socket.h>
320Sstevel@tonic-gate #include <netinet/ip6.h>
330Sstevel@tonic-gate #include <net/if.h>
340Sstevel@tonic-gate #include <inet/common.h>
350Sstevel@tonic-gate #include <inet/ip.h>
360Sstevel@tonic-gate 
370Sstevel@tonic-gate #ifdef	__cplusplus
380Sstevel@tonic-gate extern "C" {
390Sstevel@tonic-gate #endif
400Sstevel@tonic-gate 
410Sstevel@tonic-gate /* Header file for IP Generic Packet Classifier (ipgpc) ipp kernel module */
420Sstevel@tonic-gate 
430Sstevel@tonic-gate /* names for single ipgpc action and module name */
440Sstevel@tonic-gate #define	IPGPC_CLASSIFY		"ipgpc.classify"
450Sstevel@tonic-gate #define	IPGPC_NAME		"ipgpc"
460Sstevel@tonic-gate 
470Sstevel@tonic-gate /* config names of name-value pairs and type */
480Sstevel@tonic-gate #define	IPGPC_UID		"ipgpc.user" /* int32_t */
490Sstevel@tonic-gate #define	IPGPC_PROJID		"ipgpc.projid" /* int32_t */
500Sstevel@tonic-gate #define	IPGPC_IF_INDEX		"ipgpc.if_index" /* uint32_t */
510Sstevel@tonic-gate #define	IPGPC_DIR		"ipgpc.direction" /* uint32_t */
520Sstevel@tonic-gate #define	IPGPC_PROTO		"ipgpc.protocol" /* byte */
530Sstevel@tonic-gate #define	IPGPC_DSFIELD		"ipgpc.dsfield"	/* byte */
540Sstevel@tonic-gate #define	IPGPC_DSFIELD_MASK	"ipgpc.dsfield_mask" /* byte */
550Sstevel@tonic-gate #define	IPGPC_SPORT		"ipgpc.sport" /* uint16_t */
560Sstevel@tonic-gate #define	IPGPC_SPORT_MASK	"ipgpc.sport_mask" /* uint16_t */
570Sstevel@tonic-gate #define	IPGPC_DPORT		"ipgpc.dport" /* uint16_t */
580Sstevel@tonic-gate #define	IPGPC_DPORT_MASK	"ipgpc.dport_mask" /* uint16_t */
590Sstevel@tonic-gate #define	IPGPC_SADDR		"ipgpc.saddr" /* uint32_t[4] */
600Sstevel@tonic-gate #define	IPGPC_SADDR_MASK	"ipgpc.saddr_mask" /* uint32_t[4] */
610Sstevel@tonic-gate #define	IPGPC_SADDR_HOSTNAME	"ipgpc.saddr_hostname" /* string */
620Sstevel@tonic-gate #define	IPGPC_DADDR		"ipgpc.daddr" /* uint32_t[4] */
630Sstevel@tonic-gate #define	IPGPC_DADDR_MASK	"ipgpc.daddr_mask" /* uint32_t[4] */
640Sstevel@tonic-gate #define	IPGPC_DADDR_HOSTNAME	"ipgpc.daddr_hostname" /* string */
650Sstevel@tonic-gate #define	IPGPC_PRECEDENCE	"ipgpc.precedence" /* uint32_t */
660Sstevel@tonic-gate #define	IPGPC_PRIORITY		"ipgpc.priority" /* uint32_t */
670Sstevel@tonic-gate #define	IPGPC_FILTER_TYPE	"ipgpc.filter_type" /* byte */
680Sstevel@tonic-gate #define	IPGPC_FILTER_INSTANCE	"ipgpc.filter_instance"	/* int32_t */
690Sstevel@tonic-gate #define	IPGPC_FILTER_PRIVATE	"ipgpc.filter_private" /* string */
700Sstevel@tonic-gate 
710Sstevel@tonic-gate /* Filter Types for IPGPC_FILTER_TYPE */
720Sstevel@tonic-gate #define	IPGPC_GENERIC_FLTR	0
730Sstevel@tonic-gate #define	IPGPC_V4_FLTR		1
740Sstevel@tonic-gate #define	IPGPC_V6_FLTR		2
750Sstevel@tonic-gate 
760Sstevel@tonic-gate #ifdef	__cplusplus
770Sstevel@tonic-gate }
780Sstevel@tonic-gate #endif
790Sstevel@tonic-gate 
800Sstevel@tonic-gate #endif	/* _IPP_IPGPC_IPGPC_H */
81