classifier.h revision e11c3f44f531fdff80941ce57c065d2ae861cefc
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _IPP_IPGPC_CLASSIFIER_H
#define _IPP_IPGPC_CLASSIFIER_H
#ifdef __cplusplus
extern "C" {
#endif
/* Header file for classifier implementation for ipgpc */
#define IPGPC_DEBUG
#ifdef IPGPC_DEBUG
#else
#define ipgpc0dbg(a) /* */
#define ipgpc1dbg(a) /* */
#define ipgpc2dbg(a) /* */
#define ipgpc3dbg(a) /* */
#define ipgpc4dbg(a) /* */
#endif /* IPGPC_DEBUG */
#define BUMP_STATS(x) ++(x)
#define SET_STATS(x, y) x = y
#define UPDATE_STATS(x, y) x += y
/* packet structure */
typedef struct ipgpc_packet_s {
/* IP Addresses are represented as IPV6 address structures */
extern int ipgpc_debug;
extern void print_packet(int, ipgpc_packet_t *);
#ifdef __cplusplus
}
#endif
#endif /* _IPP_IPGPC_CLASSIFIER_H */