Description: Code
#ifndef __SS7_SDTI_H__
#define __SS7_SDTI_H__
#ident "@(#) sdti.h,v openss7-0_9_2_G(0.9.2.6) Copyright (c) 2001-2008 OpenSS7 Corporation."
typedef lmi_long sdt_long;
typedef lmi_ulong sdt_ulong;
typedef lmi_ushort sdt_ushort;
typedef lmi_uchar sdt_uchar;
#define SDT_PROTO_BASE 48L
#define SDT_DSTR_FIRST ( 1L + SDT_PROTO_BASE)
#define SDT_DAEDT_TRANSMISSION_REQ ( 1L + SDT_PROTO_BASE)
#define SDT_DAEDT_START_REQ ( 2L + SDT_PROTO_BASE)
#define SDT_DAEDR_START_REQ ( 3L + SDT_PROTO_BASE)
#define SDT_AERM_START_REQ ( 4L + SDT_PROTO_BASE)
#define SDT_AERM_STOP_REQ ( 5L + SDT_PROTO_BASE)
#define SDT_AERM_SET_TI_TO_TIN_REQ ( 6L + SDT_PROTO_BASE)
#define SDT_AERM_SET_TI_TO_TIE_REQ ( 7L + SDT_PROTO_BASE)
#define SDT_SUERM_START_REQ ( 8L + SDT_PROTO_BASE)
#define SDT_SUERM_STOP_REQ ( 9L + SDT_PROTO_BASE)
#define SDT_DSTR_LAST ( 9L + SDT_PROTO_BASE)
#define SDT_USTR_LAST (-1L - SDT_PROTO_BASE)
#define SDT_RC_SIGNAL_UNIT_IND (-1L - SDT_PROTO_BASE)
#define SDT_RC_CONGESTION_ACCEPT_IND (-2L - SDT_PROTO_BASE)
#define SDT_RC_CONGESTION_DISCARD_IND (-3L - SDT_PROTO_BASE)
#define SDT_RC_NO_CONGESTION_IND (-4L - SDT_PROTO_BASE)
#define SDT_IAC_CORRECT_SU_IND (-5L - SDT_PROTO_BASE)
#define SDT_IAC_ABORT_PROVING_IND (-6L - SDT_PROTO_BASE)
#define SDT_LSC_LINK_FAILURE_IND (-7L - SDT_PROTO_BASE)
#define SDT_TXC_TRANSMISSION_REQUEST_IND (-8L - SDT_PROTO_BASE)
#define SDT_USTR_FIRST (-8L - SDT_PROTO_BASE)
#define SDTS_POWER_OFF 0
#define SDTS_IDLE 1
#define SDTS_ABORTED_PROVING 2
#define SDTS_NORMAL_PROVING 3
#define SDTS_EMERGENCY_PROVING 4
#define SDTS_MONITORING_ERRORS 5
#define SDTS_MONITORING 6
#define SDTF_DAEDT_ACTIVE (1<<0)
#define SDTF_DAEDR_ACTIVE (1<<1)
#define SDTF_AERM_ACTIVE (1<<2)
#define SDTF_SUERM_ACTIVE (1<<3)
typedef struct {
sdt_long sdt_primitive;
sdt_ulong sdt_count;
} sdt_rc_signal_unit_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_daedt_transmission_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_daedt_start_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_daedr_start_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_iac_correct_su_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_aerm_start_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_aerm_stop_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_aerm_set_ti_to_tin_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_aerm_set_ti_to_tie_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_iac_abort_proving_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_suerm_start_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_suerm_stop_req_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_lsc_link_failure_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_rc_congestion_accept_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_rc_congestion_discard_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_rc_no_congestion_ind_t;
typedef struct {
sdt_long sdt_primitive;
} sdt_txc_transmission_request_ind_t;
union SDT_primitives {
sdt_long sdt_primitive;
sdt_daedt_transmission_req_t daedt_transmission_req;
sdt_daedt_start_req_t daedt_start_req;
sdt_daedr_start_req_t daedr_start_req;
sdt_aerm_start_req_t aerm_start_req;
sdt_aerm_stop_req_t aerm_stop_req;
sdt_aerm_set_ti_to_tin_req_t aerm_set_ti_to_tin_req;
sdt_aerm_set_ti_to_tie_req_t aerm_set_ti_to_tie_req;
sdt_suerm_start_req_t suerm_start_req;
sdt_suerm_stop_req_t suerm_stop_req;
sdt_rc_signal_unit_ind_t rc_signal_unit_ind;
sdt_rc_congestion_accept_ind_t rc_congestion_accept_ind;
sdt_rc_congestion_discard_ind_t rc_congestion_discard_ind;
sdt_rc_no_congestion_ind_t rc_no_congestion_ind;
sdt_iac_correct_su_ind_t iac_correct_su_ind;
sdt_iac_abort_proving_ind_t iac_abort_proving_ind;
sdt_lsc_link_failure_ind_t lsc_link_failure_ind;
sdt_txc_transmission_request_ind_t txc_transmission_request_ind;
};
#define SDT_DAEDT_TRANSMISSION_REQ_SIZE sizeof(sdt_daedt_transmission_req_t)
#define SDT_DAEDR_START_REQ_SIZE sizeof(sdt_daedr_start_req_t)
#define SDT_DAEDT_START_REQ_SIZE sizeof(sdt_daedt_start_req_t)
#define SDT_AERM_START_REQ_SIZE sizeof(sdt_aerm_start_req_t)
#define SDT_AERM_STOP_REQ_SIZE sizeof(sdt_aerm_stop_req_t)
#define SDT_AERM_SET_TI_TO_TIN_REQ_SIZE sizeof(sdt_aerm_set_ti_to_tin_req_t)
#define SDT_AERM_SET_TI_TO_TIE_REQ_SIZE sizeof(sdt_aerm_set_ti_to_tie_req_t)
#define SDT_SUERM_START_REQ_SIZE sizeof(sdt_suerm_start_req_t)
#define SDT_SUERM_STOP_REQ_SIZE sizeof(sdt_suerm_stop_req_t)
#define SDT_RC_SIGNAL_UNIT_IND_SIZE sizeof(sdt_rc_signal_unit_ind_t)
#define SDT_RC_CONGESTION_ACCEPT_IND_SIZE sizeof(sdt_rc_congestion_accept_ind_t)
#define SDT_RC_CONGESTION_DISCARD_IND_SIZE sizeof(sdt_rc_congestion_discard_ind_t)
#define SDT_RC_NO_CONGESTION_IND_SIZE sizeof(sdt_rc_no_congestion_ind_t)
#define SDT_IAC_CORRECT_SU_IND_SIZE sizeof(sdt_iac_correct_su_ind_t)
#define SDT_IAC_ABORT_PROVING_IND_SIZE sizeof(sdt_iac_abort_proving_ind_t)
#define SDT_LSC_LINK_FAILURE_IND_SIZE sizeof(sdt_lsc_link_failure_ind_t)
#define SDT_TXC_TRANSMISSION_REQUEST_IND_SIZE sizeof(sdt_txc_transmission_request_ind_t)
#endif