/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SIP_MISCDEFS_H
#define _SIP_MISCDEFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <pthread.h>
#include <stdio.h>
#define SIP_SPACE_LEN sizeof (char)
/* timer granularity is in msecs */
#ifdef __linux__
typedef long long hrtime_t;
#endif
extern int sip_timer_T1;
extern int sip_timer_T2;
extern int sip_timer_T4;
extern int sip_timer_TD;
/* Structure for SIP timers */
typedef struct sip_timer_s {
/* time is in msec */
\
}
/* time is in msec */
(timer).sip_timerid = 0; \
}
}
if ((timer).sip_timerid != 0) { \
(timer).sip_timerid = 0; \
} \
}
/* returned time is in msec */
if (sip_counters.enabled) { \
} \
}
/* This is the transaction list */
typedef struct sip_conn_cache_s {
void *obj;
/* TCP fragment entry */
typedef struct sip_reass_entry_s {
char *sip_reass_msg;
int sip_reass_msglen;
/* Library data in stored in connection object */
typedef struct sip_conn_obj_pvt_s {
/* SIP traffic counters structure */
typedef struct sip_traffic_counters_s {
/* SIP logfile structure */
typedef struct sip_logfile_s {
typedef struct sip_msg_chain_s {
char *sip_msg;
int msg_seq;
typedef struct sip_log_s {
int sip_msgcnt;
extern sip_traffic_counters_t sip_counters;
extern sip_logfile_t trans_log;
extern sip_logfile_t dialog_log;
extern boolean_t sip_manage_dialog;
/* To salt the hash function */
extern uint64_t sip_hash_salt;
extern void sip_timeout_init();
extern void sip_md5_hash(char *, int, char *, int, char *, int,
char *, int, char *, int, char *, int, uchar_t *);
boolean_t, int);
extern void sip_write_to_log(void *, int, char *, int);
#ifdef __cplusplus
}
#endif
#endif /* _SIP_MISCDEFS_H */