extern WORD	ls_slc[MAX_LS*16];
extern WORD	ls_sls[MAX_LS*16];
extern WORD	sls_to_link[MAX_LS*16];

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

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 char mtp_asciin_buf[80];

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

extern BYTE	mtp3_t21_flag[MAX_LS];
extern BYTE	mtp3_t22_flag[MAX_LK];
extern BYTE	mtp3_t23_flag[MAX_LK];
extern BYTE	mtp3_t12_flag[MAX_LK];
extern BYTE	mtp3_t13_flag[MAX_LK];
extern BYTE	mtp3_t14_flag[MAX_LK];

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[MAX_LS];

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

extern heartbeat_compoent_of_mtp3	mtp3_heartbeat;

extern ulong	mtp3_localip;
extern ulong	mtp3_alterip;
extern WORD	wx5[256];
extern BYTE	debug_link[MAX_LK];

extern long	mtp3_timestamp;
extern long	mtp3_csta_p;

extern ulong	mtp3_get_msg;

extern BYTE		local_change_over[MAX_LK];

extern BYTE	mtp2_buf_full[MAX_LK];
extern BYTE	nld_cause_lkd[MAX_LK];

extern BYTE	init_lsac_state[MAX_LK];
extern BYTE init_tlac_state[MAX_LK];

extern ulong	TFAmsg_OPC;
extern BYTE		TFAmsg_SrcLk;
extern ulong	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;
