Links

GitHub

Open HUB

Quick Links

Download

STREAMS

SIGTRAN

SS7

Hardware

SCTP

Browse Source

Applications

SS7 Stack

ISDN Stack

SIGTRAN Stack

VoIP Stack

MG Stack

SS7/ISDN Devices

IP Transport

Embedded Systems

Operating System

Resources

Packages

Sys Req

Repositories

Download

Mailing Lists

Browse Source

CVS Archive

Bug Reports

Library

Hardware

Vendor Links

Home

Overview

Status

Documentation

Resources

About

News

Description: Code

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



#ifndef _SYS_XTI_SCCP_H
#define _SYS_XTI_SCCP_H

#ident "@(#) xti_sccp.h,v openss7-0_9_2_G(0.9.2.8) Copyright (c) 2001-2008 OpenSS7 Corporation."

#ifndef t_uscalar_t
#define t_uscalar_t	u_int32_t
#define t_scalar_t	int32_t
#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;
	uint8_t sccp_ni;
	uint8_t sccp_ri;
	uint32_t sccp_pc;
	uint8_t sccp_ssn;
	uint8_t sccp_gtt;
	uint8_t sccp_nai;
	uint8_t sccp_es;
	uint8_t sccp_nplan;
	uint8_t sccp_tt;
	uint8_t sccp_alen;
	uint8_t sccp_addr[SCCP_MAX_ADDR_LENGTH];
} t_sccp_addr_t;

#define SCCP_RI_DPC_SSN		 0
#define SCCP_RI_GT		 1

#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
#define SCCP_GTTTYPE_NAI	 1
#define SCCP_GTTTYPE_TT		 2
#define SCCP_GTTTYPE_NP		 3
#define SCCP_GTTTYPE_NP_NAI	 4

#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

#define T_SCCP_PVAR		1
#define T_SCCP_MPLEV		2
#define T_SCCP_DEBUG		3

#define T_SCCP_CLUSTER		7
#define T_SCCP_SEQ_CTRL		8
#define T_SCCP_PRIORITY		9

#define T_SCCP_PCLASS		10
#define T_SCCP_IMPORTANCE	11
#define T_SCCP_RET_ERROR	12

#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


Last modified: Thu, 28 Nov 2024 17:55:30 GMT  
Copyright © 2014 OpenSS7 Corporation All Rights Reserved.