extern BYTE	ls_slc[2048];
extern BYTE	ls_sls[2048];
extern BYTE	sls_to_link[2048];

/** link mark **/
extern BYTE	link_available[256];
extern BYTE	changeover_possible[256];
extern BYTE	retrieval_required[256];
extern BYTE	remote_bsnt_retrieved[256];
extern BYTE	changeback_in_progress[256];
extern BYTE	changeover_in_progress[256];
extern BYTE	changeback_required[256];
extern BYTE	changeover_required[256];
extern BYTE	emergency_changeover_order[256];
extern BYTE	changeover_order[256];
extern BYTE changeover_completed[256];
extern BYTE	failed[256];
extern BYTE	blocked_by[256];
extern BYTE	local_blocked[256];
extern BYTE	remote_blocked[256];
extern BYTE	first_failure[256];
extern BYTE	changeback_select[256];
extern BYTE	changeover_select[256];
extern BYTE	co_msg_can_exchange[256];
extern BYTE	cb_msg_can_exchange[256];
extern BYTE	local_bsnt_retrievable[256];
extern BYTE	retrieved_bsnt[256];
extern BYTE	fsnt[256];
extern BYTE	fsnl[256];
extern BYTE	fsnc[256];
extern BYTE	bsnt[256];
extern BYTE	tcbc_route_change[256];
extern BYTE	command3[256];
extern BYTE	cbd_cbc_r[256];
extern BYTE	cba_cbc_r[256];
extern BYTE	cbc_s[256];
extern BYTE	controlled_rerouting_in_progress[256];
extern BYTE	transfer_prohibited[256];
extern BYTE	own_sp_restarting;
extern BYTE	link_remotely_inhibited[256];
extern BYTE	link_locally_inhibited[256];
extern BYTE	link_inhibited[256];
extern BYTE local_inhibit_in_progress[256];
extern BYTE uninhibit_in_progress[256];
extern BYTE	management_req[256];
extern BYTE	t12_expired_2nd_time[256];
extern BYTE	t13_expired_2nd_time[256];
extern BYTE	sending_phase_finished[128];

extern WORD	mtp3_timer[24];

extern BYTE	sd_buf_h[256];
extern BYTE	sd_buf_t[256];

extern MTP3Parameter	*mtp3_para;	
extern mtp	mtp3;
extern mtp3_csta		mtp3_measure;
extern measure_of_mtp3		*current_measure;
extern BYTE	current_mtime;/* current measure time */

/** debug **/

extern BYTE mtp_asciout_buf[2048];
extern BYTE mtp_asciin_buf[80];

extern BYTE t1_delay_mtp3[256];
extern BYTE t2_delay_mtp3[256];
extern BYTE t3_delay_mtp3[256];
extern BYTE t4_delay_mtp3[256];
extern BYTE t5_delay_mtp3[256];
extern BYTE t6_delay_mtp3[256];
extern BYTE t7_delay_mtp3[256];
extern BYTE t8_delay_mtp3[256];
extern BYTE t9_delay_mtp3[256];
extern BYTE t10_delay_mtp3[256];
extern BYTE t11_delay_mtp3[256];
extern BYTE t12_delay_mtp3[256];
extern BYTE t13_delay_mtp3[256];
extern BYTE t14_delay_mtp3[256];
extern BYTE t15_delay_mtp3[256];
extern BYTE t16_delay_mtp3[256];
extern BYTE t17_delay_mtp3[256];
extern BYTE t18_delay_mtp3;
extern BYTE t19_delay_mtp3;
extern BYTE t20_delay_mtp3;
extern BYTE t21_delay_mtp3[128];
extern BYTE t22_delay_mtp3[256];
extern BYTE t23_delay_mtp3[256];
extern BYTE t24_delay_mtp3[256];
extern BYTE sltc_t1_delay[256];
extern BYTE sltc_t2_delay[256];

extern BYTE	mtp3_t21_flag[128];
extern BYTE	mtp3_t22_flag[256];
extern BYTE	mtp3_t23_flag[256];
extern BYTE	mtp3_t12_flag[256];
extern BYTE	mtp3_t13_flag[256];
extern BYTE	mtp3_t14_flag[256];

extern BYTE	srm_nw;
extern BYTE	active_ls_num;
extern BYTE	current_active_ls_num;
extern BYTE	rv_TRA_num;
extern BYTE tprc_nw;
extern BYTE	taprc_loop[128];

extern BYTE	mtp2_flag_new[32];
extern BYTE	mtp2_flag_old[32];

extern heartbeat_compoent_of_mtp3	mtp3_heartbeat;

extern DWORD	mtp3_localip;
extern DWORD	mtp3_alterip;
extern WORD	wx5[256];
extern BYTE	debug_link[256];

extern long	mtp3_timestamp;
extern long	mtp3_csta_p;

extern DWORD	mtp3_get_msg;

extern BYTE		local_change_over[256];

extern BYTE	mtp2_buf_full[256];
extern BYTE	nld_cause_lkd[256];

extern BYTE	init_lsac_state[256];
extern BYTE init_tlac_state[256];

extern DWORD	TFAmsg_OPC;
extern BYTE		TFAmsg_SrcLk;
extern DWORD	TFPmsg_OPC;
extern BYTE		TFPmsg_SrcLk;
extern BYTE		sdTFP_Ls;
extern BYTE		sdTFA_Ls;
extern BYTE mtp2_module;
extern BYTE mtp2_systemid;

// mtp3 opc
extern mtp3_dynamic_opc	mtp3_opc;
