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/include/sys/xti_sccp.h


File /code/strss7/include/sys/xti_sccp.h



#ifndef _SYS_XTI_SCCP_H
#define _SYS_XTI_SCCP_H

#ident "@(#) $Name:  $($Revision: 0.8.2.5 $) Copyright (c) 1997-2002 OpenSS7 Corporation."

#ifndef t_uscalar_t
#define t_uscalar_t	ulong
#define t_scalar_t	long
#endif

#ifdef SCCP_MAX_ADDR_LENGTH
#undef SCCP_MAX_ADDR_LENGTH
#endif
#define SCCP_MAX_ADDR_LENGTH	32

typedef struct sockaddr_sccp {
	sa_family_t sccp_family;		/* Address family */
	uint8_t sccp_ni;			/* Network indicator */
	uint8_t sccp_ri;			/* Routing indicator */
	uint32_t sccp_pc;			/* Point code */
	uint8_t sccp_ssn;			/* Subsystem number (0 not present) */
	uint8_t sccp_gtt;			/* Global title translation type */
	uint8_t sccp_nai;			/* Nature of address indicator */
	uint8_t sccp_es;			/* Encoding scheme */
	uint8_t sccp_nplan;			/* Numbering plan */
	uint8_t sccp_tt;			/* Translation type */
	uint8_t sccp_alen;			/* Address length */
	uint8_t sccp_addr[SCCP_MAX_ADDR_LENGTH];	/* address digits */
} t_sccp_addr_t;

#define SCCP_RI_DPC_SSN		 0	/* route on DPC/SSN */
#define SCCP_RI_GT		 1	/* route on GT */

#define SCCP_SSN_UNKNOWN	 0
#define SCCP_SSN_SCMG		 1
#define SCCP_SSN_RESERVED	 2
#define SCCP_SSN_ISUP		 3
#define SCCP_SSN_OMAP		 4
#define SCCP_SSN_MAP		 5
#define SCCP_SSN_HLR		 6
#define SCCP_SSN_VLR		 7
#define SCCP_SSN_MSC		 8
#define SCCP_SSN_EIC		 9
#define SCCP_SSN_AUC		10
#define SCCP_SSN_ISDN_SS	11
#define SCCP_SSN_RESERVED2	12
#define SCCP_SSN_BISDN		13
#define SCCP_SSN_TC_TEST	14

#define SCCP_GTTTYPE_NONE	 0	/* no GT */
#define SCCP_GTTTYPE_NAI	 1	/* NAI only */
#define SCCP_GTTTYPE_TT		 2	/* TT only */
#define SCCP_GTTTYPE_NP		 3	/* TT, ES, NPLAN */
#define SCCP_GTTTYPE_NP_NAI	 4	/* TT, ES, NPLAN and NAI */

#define SCCP_ES_UNKNOWN		 0
#define SCCP_ES_BCD_ODD		 1
#define SCCP_ES_BCD_EVEN	 2
#define SCCP_ES_NATIONAL	 3

#define SCCP_NPLAN_UNKNOWN	 0
#define SCCP_NPLAN_ISDN		 1
#define SCCP_NPLAN_GENERIC	 2
#define SCCP_NPLAN_DATA		 3
#define SCCP_NPLAN_TELEX	 4
#define SCCP_NPLAN_MARITIME	 5
#define SCCP_NPLAN_LAND_MOBILE	 6
#define SCCP_NPLAN_ISDN_MOBILE	 7
#define SCCP_NPLAN_PRIVATE	 8

#define T_SS7_SCCP		3	/* SCCP level (same as SI value) */

/*
 *  SCCP Transport Provider Options
 */
#define T_SCCP_PVAR		1	/* protocol variant */
#define T_SCCP_MPLEV		2	/* protocol options */
#define T_SCCP_DEBUG		3	/* debug */

#define T_SCCP_CLUSTER		7	/* protocol option */
#define T_SCCP_SEQ_CTRL		8	/* sequence control parameter */
#define T_SCCP_PRIORITY		9	/* message priority */

#define T_SCCP_PCLASS		10	/* protocol class */
#define T_SCCP_IMPORTANCE	11	/* importance */
#define T_SCCP_RET_ERROR	12	/* return on error */

#define T_SCCP_PCLASS_0		0x01
#define T_SCCP_PCLASS_1		0x02
#define T_SCCP_PCLASS_2		0x04
#define T_SCCP_PCLASS_3		0x08
#define T_SCCP_PCLASS_ALL	0x0f

#define T_SCCP_CLUST			(0x0100)
#define T_SCCP_DEST_AVAILABLE		(0x1001)
#define T_SCCP_DEST_PROHIBITED		(0x1002)
#define T_SCCP_DEST_CONGESTED		(0x1003)
#define T_SCCP_CLUS_AVAILABLE		(T_SCCP_DEST_AVAILABLE |T_SCCP_CLUST)
#define T_SCCP_CLUS_PROHIBITED		(T_SCCP_DEST_PROHIBITED|T_SCCP_CLUST)
#define T_SCCP_CLUS_CONGESTED		(T_SCCP_DEST_CONGESTED |T_SCCP_CLUST)
#define T_SCCP_RESTARTING		(0x1004)
#define T_SCCP_USER_PART_UNKNOWN	(0x1005)
#define T_SCCP_USER_PART_UNEQUIPPED	(0x1006)
#define T_SCCP_USER_PART_UNAVAILABLE	(0x1007)

#endif				/* _SYS_XTI_SCCP_H */


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/include/sys/xti_sccp.h

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

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