OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/tcap/tcap_data.h


File /code/strss7/drivers/tcap/tcap_data.h



#ifndef __TCAP_DATA_H__
#define __TCAP_DATA_H__

#ident "@(#) $RCSfile: tcap_data.h,v $ $Name:  $($Revision: 0.8.2.1 $) $Date: 2002/10/18 02:29:52 $"

#include "../../include/ss7/sccp.h"
/*
 *  =========================================================================
 *
 *  TCAP Private Structures
 *
 *  =========================================================================
 */

struct tcap;
struct sccp;

typedef struct ops {
	int (*r_prim) (queue_t *, mblk_t *);
	int (*w_prim) (queue_t *, mblk_t *);
} ops_t;

typedef struct priv {
	struct prim *next;		/* list of all private structures */
	struct prim **prev;		/* list of all private structures */
	struct ops ops;			/* operations */
	queue_t *q;			/* associated read queue */
	union {
		dev_t devid;		/* device id at open */
		uint muxid;		/* multiplexer id at open */
	} u;
	uint rbid;			/* rd bufcall id */
	uint wbid;			/* wr bufcall id */
} priv_t;

typedef struct tcap {
	struct tcap *next;		/* list of all TCAP-Users */
	struct tcap **prev;		/* list of all TCAP-Users */
	struct ops ops;			/* operations */
	queue_t *q;			/* associated read queue */
	dev_t devid;			/* device id at open */
	uint rbid;			/* rd bufcall id */
	uint wbid;			/* wr bufcall id */
	uint flags;			/* interface flags */
	uint state;			/* interface state */
	uint r_error;			/* fatal read error (if any) */
	uint w_error;			/* fatal write error (if any) */
	uint token;			/* token for this stream */
	uint coninds;			/* number of outstanding N_CONN_IND */
	uint outcnt;			/* oustanding N_CONN_IND count */
	struct sccp *sccp;		/* provider */
	struct tcap *sccp_next;		/* same provider */
	struct tcap **sccp_prev;	/* same provider */
	uint nidu;			/* interface data unit size */
	uint datinds;			/* number of unacked data inds */
} tcap_t;

typedef struct sccp {
	struct sccp *next;		/* list of all TCAP-Users */
	struct sccp **prev;		/* list of all TCAP-Users */
	struct ops ops;			/* operations */
	queue_t *q;			/* associated read queue */
	uint muxid;			/* multiplexer id at open */
	uint rbid;			/* rd bufcall id */
	uint wbid;			/* wr bufcall id */
	queue_t *lmq;			/* associated layer mgmt queue */
	uint flags;			/* interface flags */
	uint state;			/* interface state */
	uint r_error;			/* fatal read error (if any) */
	uint w_error;			/* fatal write error (if any) */
	uint use_count;			/* provider references */
	struct tcap *tcap;		/* list of tcap users */
	uint nsdu;			/* NSDU size ` */
	uint nidu;			/* NIDU size ` */
	uint nodu;			/* NODU size ` */
	sccp_addr_t bnd;		/* Bound SCCP address */
	uint8_t baddr[SCCP_MAX_ADDR_LENGTH];
	uint ssn;			/* SCCP Subsytem number */
} sccp_t;

extern uint tcap_next_transaction_id;
extern tcap_t *tcap_opens;
extern sccp_t *tcap_links;
extern tcap_t *tcap_dflt_dest;
extern tcap_t *tcap_dflt_lstn;
extern queue_t *tcap_lmq;
extern queue_t *tcap_xlq;

#endif				/* __TCAP_DATA_H__ */


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/tcap/tcap_data.h

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: