/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _IPP_FLOWACCT_FLOWACCT_IMPL_H
#define _IPP_FLOWACCT_FLOWACCT_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <inet/ipp_common.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Header file for implementation of flowacct */
#ifdef _KERNEL
#define _FLOWACCT_DEBUG
#ifdef _FLOWACCT_DEBUG
#else
#endif /* _FLOWACCT_DEBUG */
/* Flow Table Size */
/* To identify objects in the list - could be a flow or an item */
/* Whether an object has to be physically removed from the table */
/*
* Default values for timer and timeout - taken from SBM
* timer 15 secs (15000 msec) and timeout 60 secs (60000 msec).
*/
/* List holding an obj - flow or item */
typedef struct list_hdr_s {
void *objp;
} list_hdr_t;
/* List of list of flows */
typedef struct list_head_s {
} list_head_t;
/* Global stats for flowacct */
typedef struct flowacct_stat_s {
/* Item common to a flow (identified by 5-tuple) */
typedef struct flow_item_s {
} flow_item_t;
/* Flow attributes */
typedef struct flow_s {
/*
* to indicate to the flow timer not to delete this flow
*/
} flow_t;
/* From the IP header */
typedef struct header {
uint16_t ident;
} header_t;
typedef struct flowacct_data_s {
/* TRhe flow table. We'll use the last bucket for timeout purposes */
extern void flowacct_timer(int, flowacct_data_t *);
extern void flowacct_timeout_flows(void *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _IPP_FLOWACCT_FLOWACCT_IMPL_H */