#ifndef _T_ULL
#define _T_ULL
    typedef unsigned long long ull;
#endif


#define	SIGNAL_TFA						0x54
#define SIGNAL_TFP						0x14
#define SIGNAL_TRA						0x17
#define SIGNAL_RST						0x15
#define SIGNAL_COO						0x11
#define SIGNAL_COA						0x21
#define SIGNAL_CBD						0x51
#define SIGNAL_CBA						0x61 
#define SIGNAL_ECO						0x12 
#define SIGNAL_ECA						0x22 
#define SIGNAL_LIN						0x16 
#define SIGNAL_LUN						0x26 
#define SIGNAL_LIA						0x36 
#define SIGNAL_LUA						0x46 
#define SIGNAL_LID						0x56 
#define SIGNAL_LFU						0x66 
#define SIGNAL_LLT						0x76 
#define SIGNAL_LRT						0x86 
#define SIGNAL_SLTM						0x11
#define SIGNAL_SLTA						0x21


#define MTP3_ISUP_IAM					0x01
#define MTP3_ISUP_ACM					0x06
#define MTP3_ISUP_CPG					0x2c
#define MTP3_ISUP_ANM					0x09
#define MTP3_ISUP_REL					0x0c
#define MTP3_ISUP_RLC					0x10
#define MTP3_ISUP_UBL					0x14
#define MTP3_ISUP_UBA					0x16
#define MTP3_ISUP_GRA					0x19


#define MTP3_TUP_IAM					0x11
#define MTP3_TUP_IAI					0x21
#define MTP3_TUP_SAM					0x31
#define MTP3_TUP_SAO					0x41
#define MTP3_TUP_GSM					0x12
#define MTP3_TUP_COT					0x32
/*#define MTP3_TUP_CCF			 '0x42',*/
#define MTP3_TUP_GRQ					0x13
#define MTP3_TUP_ACM					0x14
#define MTP3_TUP_SEC					0x15
#define MTP3_TUP_CGC					0x25
#define MTP3_TUP_CFL					0x55
#define MTP3_TUP_SSB					0x65
/*#define MTP3_TUP_SLB					0x1E,
#define MTP3_TUP_STB					0x2E,*/
#define MTP3_TUP_UNN					0x75
#define MTP3_TUP_LOS					0x85
#define MTP3_TUP_SST					0x95
#define MTP3_TUP_ACB					0xa5
#define MTP3_TUP_DPN					0xb5
#define MTP3_TUP_ANU					0x06
#define MTP3_TUP_ANC					0x16
#define MTP3_TUP_ANN					0x26
#define MTP3_TUP_CBK					0x36
#define MTP3_TUP_CLF					0x46
#define MTP3_TUP_CCL					0x76
#define MTP3_TUP_RLG					0x17
#define MTP3_TUP_BLO					0x27
#define MTP3_TUP_BLA					0x37
#define MTP3_TUP_UBL					0x47
#define MTP3_TUP_UBA					0x57			
#define MTP3_TUP_ADI					0x45


#define MTP3_SCCP_CR		1
#define MTP3_SCCP_CC		2
#define MTP3_SCCP_CREF		3
#define MTP3_SCCP_RLSD		4
#define MTP3_SCCP_RLC		5
#define MTP3_SCCP_DT1		6
#define MTP3_SCCP_DT2		7
#define MTP3_SCCP_AK		8
#define MTP3_SCCP_UDT		9
#define MTP3_SCCP_UDTS		10
#define MTP3_SCCP_ED		11
#define MTP3_SCCP_EA		12
#define MTP3_SCCP_RSR		13
#define MTP3_SCCP_RSC		14
#define MTP3_SCCP_ERR		15
#define MTP3_SCCP_IT		16
#define MTP3_SCCP_XUDT		17
#define MTP3_SCCP_XUDTS		18
#define MTP3_SCCP_LUDT		19
#define MTP3_SCCP_LUDTS		20


#define BETWEEN_LS						0x00 
#define WITHIN_LS						0x01 

#define NORMAL_LS						0x00 
#define ALTERNATIVE_LS					0x01 
#define NO_ROUTE						0x02 

/**************************************TCOC INPUT**************************************/
/* TCOC INPUT FROM L2 */

#define TCOC_L2_BSNT						1 
#define	TCOC_L2_BSNT_CANNOT_RECOVER			2 
#define TCOC_L2_RETRIEVED_MSG				3 
#define TCOC_L2_RETRIEVAL_CMP				4 
#define TCOC_L2_RETRIEVAL_NOT_POSSIBLE		5 

/* TCOC INPUT FROM TSRC */
#define TCOC_ALTERATIVE_ROUTE_DT			1

/* TCOC INPUT FROM STM */
#define TCOC_LINK_UNAVAILABLE				1 
#define TCOC_LINK_AVAILABLE					2 
#define TCOC_TLAC_COO_COMMAND				3 
#define TCOC_TLAC_ECO_COMMAND				4 

/* TCOC INPUT FROM HMDT */
#define	TCOC_HMDT_COA_COMMAND				1 
#define TCOC_HMDT_ECA_COMMAND				2

/* TCOC INPUT FROM L2 */
//#define TCOC_L2_RETRIEVED_MSG				1
#define TCOC_L2_RETRIEVE_CMP				254
#define TCOC_L2_RETRIEVE_NOT_POSSIBLE		255
/**************************************TCOC INPUT**************************************/


/**************************************TCBC INPUT**************************************/
#define TCBC_LINK_UNAVAILABLE				1 
#define TCBC_LINK_AVAILABLE			 		2 
#define TCBC_HMDT_CBD_COMMAND			 	3 
#define TCBC_HMDT_CBA_COMMAND			 	4 

/* TCBC INPUT FROM TSRC */
#define TCBC_ALTERATIVE_ROUTE_DT	 		1

/**************************************TCBC INPUT**************************************/


/**************************************TLAC INPUT**************************************/
/* TLAC	INPUT FROM HMDT*/
#define TLAC_HMDT_INHIBIT_SIGLINK	 		1 
#define TLAC_HMDT_UINHIBIT_SIGLINK		 	2 
#define TLAC_HMDT_INHIBIT_ACK		 		3 
#define TLAC_HMDT_UNINHIBIT_ACK		 		4 
#define TLAC_HMDT_INHIBIT_DENIED		 	5 
#define TLAC_HMDT_FORCE_UNINHIBIT_SIGLINK	6 
#define TLAC_HMDT_CHANGEOVER_ORDER			7 
#define TLAC_HMDT_ECHANGEOVER_ORDER			8 
#define TLAC_HMDT_LOCAL_INHIBIT_TEST		9
#define TLAC_HMDT_REMOTE_INHIBIT_TEST		10


/* TLAC INPUT FROM MGMT */
#define TLAC_MGMT_INHIBIT_SIGLINK	 		1 
#define TLAC_MGMT_UINHIBIT_SIGLINK	 		2 

/* TLAC INPUT FROM SLM */
#define TLAC_LSAC_SIGLINK_FAILED			1 
#define TLAC_LSAC_LINK_IN_SERVICE			2 
#define TLAC_LSAC_REMOTE_PROCESSOR_OUTAGE	3 
#define TLAC_LSAC_REMOTE_PROCESSOR_RECOVER	4 

/* TLAC	INPUT FROM STM */
#define TLAC_TCBC_CHANGEBACK_TERMINATED		1 
#define TLAC_TCOC_CHANGEOVER_EXECUTED		2 
#define TLAC_TCOC_CHANGEOVER_NOT_REQ		3 
#define TLAC_LOCAL_INHIBIT_ALLOWED		 	4 
#define TLAC_REMOTE_INHIBIT_ALLOWED		 	5 
#define TLAC_LOCAL_INHIBIT_DENIED		 	6 
#define TLAC_REMOTE_INHIBIT_DENIED		 	7 
#define TLAC_UINHIBIT_SIGLINK_FROM_TSRC	 	8 
#define TLAC_UNINHIBIT_NOT_POSSIBLE		 	9 
#define TLAC_UNINHIBIT_POSSIBLE			 	10 
#define TLAC_ADJACENT_SP_RESTARTING		 	11 
#define TLAC_RESTART_BEGINS				 	12 
#define TLAC_RESTART_ENDS					13
#define TLAC_ADJACENT_SP_RESTART_ENDS		14

/* TLAC	INPUT FROM TIMER CONTROL */
#define TLAC_T12_EXPIRED					1
#define TLAC_T13_EXPIRED					2
#define TLAC_T14_EXPIRED					3
#define TLAC_T22_EXPIRED					4
#define TLAC_T23_EXPIRED					5
/**************************************TLAC INPUT**************************************/


/**************************************TSRC INPUT**************************************/
/* TSRC_INPUT_FROM_TCOC */
#define TSRC_TCOC_ALTERNATIVE_ROUTING_DATA_REQUEST		1 
#define TSRC_TCOC_ACCESS_DATA_REQ 						2 
#define TSRC_TCOC_CHANGEOVER_EXECUTED		 			3 
#define TSRC_TCOC_CHANGEOVER_NOT_REQ			 		4 

/* TSRC_INPUT_FROM_TCBC */
#define TSRC_TCBC_ALTERNATIVE_ROUTING_DATA_REQUEST		1 
#define TSRC_PROCEDURE_TERMINATED		 				2 

/*TSRC_INPUT_FROM_STM*/
#define TSRC_TFRC_ALTERNATIVE_ROUTING_DATA_REQUEST		1 
#define TSRC_TCRC_ALTERNATIVE_ROUTING_DATA_REQUEST		2 
#define TSRC_RESTART_BEGINS				 				3 
#define TSRC_RESTART_ENDS				 				4 
#define TSRC_TRAFFIC_RESTART_ALLOWED	 				5 
#define TSRC_SENDING_STATUS_PHASE		 				6

/*TSRC_INPUT_FROM_SRM*/
#define TSRC_RTAC_ROUTE_AVAILABLE			 	1 
#define TSRC_RTPC_ROUTE_UNAVAILABLE			 	2 

/* TSRC_INPUT_FROM_TLAC */
#define TSRC_TLAC_LINK_UNAVAILABLE			 	1 
#define TSRC_TLAC_LINK_AVAILABLE				2 
#define TSRC_TLAC_LOCAL_INHIBIT_REQ			 	3 
#define TSRC_TLAC_REMOTE_INHIBIT_REQ			4 
#define TSRC_TLAC_LINK_INHIBITED				5 
#define TSRC_TLAC_CANCEL_LINK_INHIBITED		 	6 
#define TSRC_TLAC_UNINHIBIT_REQ				 	7 
/**************************************TSRC INPUT**************************************/


/**************************************TFRC INPUT**************************************/
#define TFRC_SIG_RT_UNAVAILABLE			 		0 
#define TFRC_SIG_RT_AVAILABLE			 		1 
#define TFRC_ALTERNATIVE_RT_DT			 		2 
/**************************************TFRC INPUT**************************************/


/**************************************TCRC INPUT**************************************/
#define TCRC_SIG_RT_AVAILABLE			 		0 
#define TCRC_ALTERNATIVE_RT_DT			 		1 
/**************************************TCRC INPUT**************************************/

/**************************************TPRC INPUT**************************************/
#define TPRC_ADJACENT_SP_RESTARTING		 		1
#define TPRC_TRA_MSG					 		2 
#define TPRC_RTPC_TFP_SENT						3
/**************************************TPRC INPUT ABOUT dst**************************************/
#define TPRC_LINK_AVAILABLE				 		1 
#define TPRC_LINK_UNAVAILABLE			 		2 
#define TPRC_SP_RESTART_INDICATION		 		3 
#define	TPRC_STATUS_SENT				 		4 
/**************************************TPRC INPUT**************************************/

/**************************************RTPC INPUT**************************************/
#define RTPC_MSGREV_FOR_INACCESS_SP		 		1 
#define RTPC_RSRT_SEND_TFP_MSG			 		2 
#define RTPC_TSRC_SEND_TFP_MSG			 		3 
#define RTPC_DEST_INACCESSIBLE			 		4 
#define RTPC_TFP_MSG					 		5 
#define RTPC_CTRL_RERT_TERMINATED		 		6 
#define	RTPC_CONTROLLED_RERT			 		7 
#define RTPC_RESTART_BEGINS				 		8 
#define RTPC_RESTART_ENDS				 		9 
/**************************************RTPC INPUT**************************************/


/**************************************RTAC INPUT**************************************/
#define RTAC_TFA_MSG					 		1 
#define RTAC_DEST_ACCESSIBLE			 		2 
#define RTAC_STP_NOLONGER_FOR_DEST		 		3 
#define RTAC_SEND_TFA_MSG				 		4 
#define RTAC_FORCED_RERT				 		5 
#define RTAC_FORCED_RERT_TERMINATED		 		6 
#define RTAC_FORCED_RERT_NOT_REQ		 		7 
#define RTAC_RESTART_BEGINS				 		8 
#define RTAC_RESTART_ENDS				 		9 
/**************************************RTAC INPUT**************************************/

#define RSRT_RTPC_ROUTE_SET_TEST				1
#define RSRT_TSRC_ROUTE_SET_TEST				2
#define RSRT_RTAC_ROUTE_AVAILABLE				3

#define RSRT_IDLE_STATE							0
#define RSRT_WAIT_STATE							1
/**************************************LSAC INPUT**************************************/
/* LSAC INPUT FROM L2*/
#define LSAC_L2_IN_SERVICE					1 
#define LSAC_L2_OUT_OF_SERVICE				2 
#define LSAC_L2_REMOTE_PROCESSOR_RECOV		3 
#define LSAC_L2_REMOTE_PROCESSOR_OUTAGE	 	4 

/* LSAC INPUT FROM SLTC */
#define LSAC_SLTC_SLT_SUCCESSFUL			1 
#define LSAC_SLTC_SLT_FAILED				2 

/* LSAC INPUT FROM TCOC */
#define LSAC_TCOC_STM_READY					1 
#define LSAC_TCOC_STOP_L2					2 

/* LSAC INPUT FROM STM */
#define LSAC_TLAC_CHANGEOVER_ORDER_RECEIVED	1

/* LSAC INPUT FROM SLM */
#define LSAC_ACTIVATE_LINK_FROM_LLSC	 	1 
#define LSAC_DEACTIVATE_LINK_FROM_LLSC	 	2 
#define LSAC_EMERGENCY					 	3 
#define LSAC_EMERGENCY_CEASES			 	4 

/* LSAC INPUT FROM MGMT */
#define LSAC_MGMT_ACTIVATE_LINK	 			1 
#define LSAC_MGMT_DEACTIVATE_LINK	 		0 
/**************************************LSAC INPUT**************************************/
#define LLSC_MGMT_ACTIVATE_LINKSET			1
#define LLSC_MGMT_DEACTIVATE_LINKSET		2
#define LLSC_TPRC_RESTART_BEGINS			3

/* MGMT INPUT */
#define MGMT_TLAC_LINK_INHIBITED			1
#define MGMT_TLAC_LINK_UNINHIBITED			2
#define MGMT_UNINHIBIT_NOT_POSSIBLE			3
#define MGMT_INHIBIT_DENIED					4

#define	TCOC_IDLE_STATE			0
#define TCOC_WAIT01_STATE		1
#define TCOC_WAIT02_STATE		2
#define TCOC_WAIT05_STATE		3
#define	TCOC_WAIT06_STATE		4
#define TCOC_WAIT07_STATE		5
#define TCOC_WAITACK_STATE		6
#define TCOC_RETRIEVING_STATE	7
#define TCOC_SEND_BUFMSG_STATE	8

#define TLAC_UNAVAILABLE_STATE	 0
#define TLAC_AVAILABLE_STATE	 1
#define TLAC_SP_RESTARTING_STATE 2

#define LSAC_INACTIVE_STATE		0
#define LSAC_RESTORING_STATE	1
#define LSAC_ACTIVE_STATE		2
#define LSAC_WAIT_STATE			3
#define LSAC_FAILED_STATE		4

#define TSRC_IDLE_STATE			0
#define TSRC_WAIT01_STATE		1
#define TSRC_WAIT02_STATE		2
#define TSRC_WAIT03_STATE		3
#define TSRC_WAIT04_STATE		4
#define TSRC_WAIT05_STATE		5

#define TCBC_IDLE_STATE						0
#define TCBC_WAIT_FOR_ROUTING_DATA_STATE	1
#define TCBC_TCTRL_DIVERSION_STATE			2
#define TCBC_FIRST_ATTEMPT_STATE			3
#define TCBC_SECOND_ATTEMPT_STATE			4

#define RTPC_IDLE_STATE			0
#define RTPC_WAIT_STATE			1

#define TPRC_IDLE_STATE			0
#define TPRC_WAIT01_STATE		1
#define TPRC_WAIT02_STATE		2
#define TPRC_WAIT03_STATE		3
#define TPRC_RESTART_ENDS_STATE	4

#define SLTC_IDLE_STATE			0
#define SLTC_FIRST_TRY_STATE	1
#define SLTC_SECOND_TRY_STATE	2
#define SLTC_THIRD_TRY_STATE	3
#define SLTC_RUNNING_STATE		4

#define SLTC_START				1
#define SLTA_MSG				2
#define SLTC_SECOND_TRY			3
#define SLTC_STOP				4

#ifndef IDLE
#define IDLE									0xee
#endif
#ifndef TRUE
#define TRUE									1
#endif
#ifndef FALSE
#define FALSE									0
#endif

#define	COMMAND_START							1
#define COMMAND_STOP							0
#define TIMER_START								1
#define TIMER_STOP								2

#define SP_ACCESSIBLE							1
#define SP_INACCESSIBLE							0
//#define LS_UNAVAILABLE							2

#define LOCAL_INHIBIT_REQ						0
#define REMOTE_INHIBIT_REQ						1

#define UNAVAILABLE								0
#define AVAILABLE								1
#define INHIBITED								2

#define LOCAL_INHIBIT_REQ						0
#define REMOTE_INHIBIT_REQ						1

#define MTP3_DEBUG_ID							1

//#define MTP3_OID		{1,3,6,1,4,1,1373,1,3,2,2,2}
#define MTP3_OID		{1,3,6,1,4,1,1373,2,3,2,2}
#define MTP3_OID_LEN							11

//#define MTP3_OMC_OID	{1,3,6,1,4,1,1373,1,4}
#define MTP3_OMC_OID	{1,3,6,1,4,1,1373,2,4}
#define MTP3_OMC_OID_LEN					9

//#define PLATFORM_HB_OID	{1,3,6,1,4,1,1373,1,3,2,1}
#define PLATFORM_HB_OID	{1,3,6,1,4,1,1373,2,3,2}
#define PLATFORM_HB_LEN							10
#define MTP2_HB_OID		{1,3,6,1,4,1,1373,1,3,1,1,3,4}
#define MTP2_HBOID_LEN							13

#define MTP2_ACTIVE_LINK						1
#define MTP2_DEACTIVE_LINK						2
#define MTP2_STOP_L2							3
#define MTP2_EMERGEN_ALIGNMENT					4
#define MTP2_RETRIEVE							5
#define MTP3_M2UA_DISABLE						6
#define MTP3_M2UA_ENABLE						7
#define MTP3_M3UA_ENABLE						7
#define MTP3_M3UA_DISABLE						6

#define ROUTE_AVAILABLE							0
#define ROUTE_UNAVAILABLE						1

#define MTP_MAX_ASCIIOUT_LEN					2048

#define DISPLAY_SNM_MESSAGE						0
#define DISPLAY_TM_MESSAGE						1
#define DISPLAY_SCCP_MESSAGE					3
#define DISPLAY_TUP_MESSAGE						4
#define DISPLAY_ISUP_MESSAGE					5
#define DISPLAY_MTP3_ERROR_LOG					6
#define MTP3_MSGLOG_ON							1
#define MTP3_MSGLOG_OFF							0

#define SNM_SIO									0
#define TM_SIO									1/* T+M */
#define SCCP_SIO								3
#define TUP_SIO									4
#define ISUP_SIO								5
#define BICC_SIO								13

#define MTP2_STATE_IDLE							0
#define MTP2_STATE_STOP							1
#define MTP2_STATE_ASSIGN						2
#define MTP2_STATE_READY						3
#define MTP2_STATE_NOT_READY					4
#define MTP2_STATE_WORKING						5
#define MTP2_STATE_ERROR						6
#define MTP2_STATE_WAITING						7
#define MTP2_STATE_STATE_CONGEST				8

#define MTP3_TO_USERPART						0
#define USERPART_TO_MTP3						1
#define MTP_MSG_UP								0
#define MTP_MSG_DOWN							1
#define MTP_MSG_STP								2
#define MTP_MSG_OTHER_SERVER					3
#define MTP_SNM_MSG								4
#define MTP_TO_LITE								5
#define MTP_FROM_LITE							6

#define SS7_PORT								4950
#define M2UA_PORT								2904
#define	MTP3_MULTICAST_PORT						4969

#define MTP3_IPTX_MSG							0
#define MTP3_UP_MSG								1

#define E1CARD_BASE_IP							0x010012AC
#define E1CARD_BASE_IP_MASK						0xff00ffff

#define PARA_CONFIGURED						1
#define PARA_NOT_CONFIGURED					0


#define LS_AVAILABLE						0
#define LS_UNAVAILABLE						1
#define NLS_AVAILABLE						0
#define ALS_AVAILABLE						0
#define NLS_UNAVAILABLE						2
#define ALS_UNAVAILABLE						2

#define UPDATE_NLS							0
#define UPDATE_ALS							1

#define LINK_TO_IP(link)					(link >> 3) << 16 | 0x010012AC

#define MAX_LS_DPC							128
#define MAX_LS_DPC_ADD1						129
#define MAX_LS_NUM							128

#define MTP3_14BIT_PC						14
#define MTP3_24BIT_PC						24

#define MSG_FROM_MTP2						0
#define MSG_FROM_MTP3						1

#define MAX_ACN_NUM							36

#define MAX_MTP3_NUM						64

#define MTP3_LINK_COMPONENT					23
#define MTP3_LINKSET_COMPONENT				279
#define MTP3_SG_COMPONENT					264

#define MTP3_VERSION						{1, 0, 02}
//9,0,2 change ss7 format to "link-0, len -1-2, sio-3 "
//9,0,3 support m3ua msg

#define MTP3_COMPONENT_ID						1
#define ALARM_LINK_UNAVAILABLE					0
#define ALARM_LINK_AVAILABLE					1
#define ALARM_LINK_INHIBIT						2
#define ALARM_LS_UNAVAILABLE					3
#define ALARM_LS_AVAILABLE						4
#define ALARM_LS_INHIBIT						5
#define NORMAL_HEARTBEAT						6

#define M2UAALARM_SCTP_Failure						1
#define M2UAALARM_SG_Maintenance					2
#define M2UAALARM_Remote_MTP2_down					3
#define M2UAALARM_Local_MTP3_Request_Link_Down		4
#define M2UAALARM_Local_SGLink_Maintenance			5
#define M2UAALARM_SCCPLite_TCP_Failure				16
#define M2UAALARM_SCCPLite_Inactivity_Timeout		17

#define MTP3ALARM_LINK_TEST_FAILED					1
#define MTP3ALARM_LINK_COO_RECEIVED					2
#define MTP3ALARM_LINK_CHANGE_OVER					3
#define MTP3ALARM_LINK_MGMT_REQUEST					4
#define MTP3ALARM_LINK_CB_TO_NMTP3					5
#define MTP3ALARM_LINK_LOCAL_INHIBITED				6
#define MTP3ALARM_LINK_REMOTE_INHIBITED				7

//#define MTP3_HB_LEN									134
#define MTP3_HB_LEN									422
#define MTP3_SERNUM_LEN								4//4 bytes

typedef	enum 
{
	LKTYPE_NONE_SIGTRAN		= 0,
	LKTYPE_SIGTRAN			= 1,
	LKTYPE_MTP3_LITE		= 2,
	LKTYPE_RESERVED1		= 3,
	LKTYPE_M3UA			= 4,
	LKTYPE_RESERVED3		= 5,
	LKTYPE_RESERVED4		= 6,
	LKTYPE_RESERVED5		= 7,
}MTP3_LKTYPE_LIST;

typedef enum
{
	MTP3_SUB_SNM	= 0,
	MTP3_SUB_STM	= 1,
	MTP3_SUB_STM2	= 2,
	MTP3_SUB_SCCP	= 3,
	MTP3_SUB_TUP	= 4,
	MTP3_SUB_ISUP	= 5,
	MTP3_SUB_DUP1	= 6,
	MTP3_SUB_DUP2	= 7,
	MTP3_SUB_NONE2	= 8,
	MTP3_SUB_BISUP	= 9,
	MTP3_SUB_SISUP	= 10,
	MTP3_SUB_NONE3	= 11,
	MTP3_SUB_NONE4	= 12,
	MTP3_SUB_BICC	= 13
}MTP3_SUB_NAME;

#define MTP3_MAX_DYNAMIC_OPC_PER_NW		16
#define MAX_LK	1024
#define MAX_LK_INDEX	1023
#define MAX_ROUTE	1024
#define MAX_LS	512
