📄 gen.h
字号:
/* Used by SIP */
#define STSIPENT 155 /* SIP Entity */
/* Mngmt.t.cntrl.action, Mngmt.hdr.elmId.elmntInst1 */
#define AENA 1 /* enable */
#define ADISIMM 2 /* disable - immediately */
#define ADISGRC 3 /* disable - gracefully */
#define ARST 4 /* reset */
#define ADGN 5 /* diagnose */
#define AADD 6 /* add */
#define ADEL 7 /* delete */
#define AINH 8 /* inhibit */
#define AUNINH 9 /* uninhibit */
#define ASPRST 10 /* signalling point restart */
#define AACTLNKSET 11 /* activate link set */
#define ADEACTLNKSET 12 /* deactivate link set */
#define AVAL 13 /* validate circuit */
#define AFLCON 14 /* flow control on */
#define AFLCOFF 15 /* flow control off */
#define ACLEAR 16 /* clear */
#define ASTRTLL 17 /* start local loop */
#define AENDLL 18 /* end local loop */
#define ACTION_DROP 19 /* action - drop */
#define ACTION_NO_DROP 20 /* action - no drop */
#define ABND_ENA 21 /* bind and enable */
#define ARSTVCC 22 /* restart a virtual channel connection */
#define ARSTVPC 23 /* restart a virtual path connection */
/* actions for LsaCntrlReq (q.2140) */
#define AFORCE_PRV 24 /* Force Proving */
#define AFORCE_EM 25 /* Force Emergency */
#define ACLR_FORCE_MD 26 /* Clear Force Mode */
#define ACTION_LPO 27 /* Local Processor Outage */
#define ACTION_LPR 28 /* Local Processor Recovered */
#define APRV_UNS 29 /* Proving Unsuccessful Response */
#define ABND 30 /* bind */
#define AUBND 31 /* disable + unbind */
#define AUBND_DIS AUBND /* unbound disable */
/* actions for mtp3 */
#define ADELROUT 32 /* delete rout control block */
#define ADELLNKSET 33 /* delete all linkset control blocks, link control blocks
for a given linkset id */
#define ADELCMBLNKSET 34 /* delete linkset control block for a given combined linkset id */
#define ADELLNK 35 /* delete link control block */
#define ASHUTDOWN 36 /* shutdown the layer */
#define ATRAP 37 /* trap */
#define AGEN_STA 38 /* generate status indications -MSOC */
/* actions for fault tolerance */
#define AGO_ACT 38 /* go active */
#define AGO_SBY 39 /* go standby */
#define AWARMSTART 40 /* start warm start */
#define AABORT 41 /* abort warm start or controlled sw */
#define ASYNCHRONIZE 42 /* start controlled switchover */
#define ANOACT 43 /* null action (nop) */
#define AHOLDQUEUE 44 /* hold queue, for the message router */
#define ARLSQUEUE 45 /* hold queue, for the message router */
#define APEER_PING 46 /* peer ping, for peer system agent */
#define ADIS_PEER_SAP 47 /* enable/disable peer sap */
#define AGEN_FAULT 48 /* fault injection action */
#define AAUDIT 49 /* Perform Audits on the layer */
#define ADISIMM_L2 50 /* Disable Layer 2 only */
#define ADEACTLNKSET_L2 51 /* deactivate link set: all links should be deactivated
only at L2 level */
#define AGEN_MSG 52 /* message generation control action */
/* For PLOA */
#define ASNDTRIGG 53 /* Generate Flow detection trigger */
#define AXIDINI 54 /* GPRS: start XID initialization */
#define APMLEN 55 /* GPRS: change the N202 value of
an LLC link */
/* For Q.930/Q.931 */
#define AADD_BCHAN 56 /* Provision B Channel */
#define ADEL_BCHAN 57 /* De-Provision B Channel */
#define AMOOS 58 /* Put the D-Channel MOOS State */
#define ASRVMSG_ON 59 /* Turn on service message capability */
#define ASRVMSG_OFF 60 /* Turn off service message capability */
#define ARESTART 61 /* Restart Interface/Channel */
/* For TCR 0004.01 */
#define AMODIFY 62 /* Modify trace length */
/* For AAL2 Signaling */
#define ASTOPRST 63 /* Stop Reset procedure */
#define ABLK 64 /* Block Procedure - AAL2 */
#define AUBLK 65 /* unblock procedure */
/* For GCP 1.2 */
#define AHANDOFF 66 /* Handoff procedure */
#define AMATEDCFG_ADD 67 /* Configure MG as mated pair */
#define AMATEDCFG_RMV 68 /* Disassociate two MGs which were in a mated
pair cfg */
#define AFAILOVER 69 /* Failover Procedure */
/* For SIP */
#define AADD_ASSOC_TPTSRV 70 /* Add transport server association */
#define ADEL_ASSOC_TPTSRV 71 /* Delete transport server association */
/* Mngmt.t.cntrl.subAction */
#define SAELMNT 1 /* specified element */
#define SAACNT 2 /* accounting generation */
#define SAUSTA 3 /* unsolicited status generation */
#define SATRC 4 /* trace generation */
#define SADBG 5 /* debugging */
/* grouping criteria's will be filled in subaction fields */
#define SAGR_DSTPROCID 6 /* group on dstProcId */
#define SAGR_ROUTE 7 /* group on routes */
#define SAGR_PRIORITY 8 /* group on priority */
#define SAENA_PEER_SAP 9 /* enable peer sap */
#define SADIS_PEER_SAP 10 /* disable peer sap */
#define SAAUD 11 /* Audit */
/* For GCP 1.2 */
#define SADNS 12 /* Enable /Disable DNS Access*/
#define SAGR_GENERIC_MAX 20 /* max on subactions to be defined in gen.h */
/* Mngmt.t.mib.opCode */
#define MIBOPCODEBASE 1000 /* Base for non standard opCode values */
#define MIB_REQUEST_GET 0 /* GET request for reading mib variable*/
#define MIB_REQUEST_GET_NEXT 1 /* GET-NEXT request to read
lexicographically next mib variable*/
#define MIB_REQUEST_SET 3 /* Assign mib variable a value */
/* Mngmt.t.mib.status */
#define MIBSTATUSBASE 1000 /* Base for non standard status values */
#define MIB_SUCCESS 0 /* Mib request successfully completed */
#define MIB_NOSUCHNAME 2 /* no such name */
#define MIB_INVALID_IDX (MIBSTATUSBASE + 1) /* Index to the row-column
* of mib table invalid */
#define MIB_INVALID_OPCODE (MIBSTATUSBASE + 3) /* OpCode is not one of the
* above defined*/
#define MIB_END_ALL_TABLES (MIBSTATUSBASE + 4) /* End of the table reached
* in get next */
#define MIB_SUCCESS_NEXT_AVL_OBJ (MIBSTATUSBASE + 6) /* returning object from
* a different table than
* before */
/* Mngmt.t.trc.evnt */
#define TL1FRMRX 0 /* layer 1 - frame received */
#define TL1FRMTX 1 /* layer 1 - frame transmitted */
#define TL2FRMRX 2 /* layer 2 - frame received */
#define TL2FRMTX 3 /* layer 2 - frame transmitted */
#define TL2TMR 4 /* layer 2 - timer expired */
#define TL3PKTRX 5 /* layer 3 - frame received */
#define TL3PKTTX 6 /* layer 3 - frame transmitted */
#define TL3TMR 7 /* layer 3 - timer expired */
#define TL7FRMRX 8 /* layer 7 - frame received */
#define TL7FRMTX 9 /* layer 7 - frame transmitted */
#define TL7TMR 10 /* layer 7 - timer expired */
#define TL5MSGTX 11 /* layer 5 - message transmitted */
#define TL5MSGRX 12 /* layer 5 - message received */
/* defines for MxxStsReq */
#define ZEROSTS 0 /* zero statistics counters */
#define NOZEROSTS 1 /* dont zero statistics counters */
/* defines for MxxCfgReq */
#define THRSHA 0 /* 00% resources available */
/* scc drops frames */
#define THRSHB 1 /* 10% resources available */
/* lapb and lapd send rnr frames */
#define THRSHC 2 /* 20% resources available */
/* lapb and lapd send rr frames */
#define THRSHD 3 /* 30% resources available */
/* x.25 es and x.25 is send reset packets */
#define THRSHE 4 /* 40% resources available */
/* x.25 es and x.25 is send clear packets */
/* to call packets */
#define LSAP 1 /* Link Level SAP Type */
#define XTSAP 2 /* Transport SAP Type */
#ifdef IGNORE
#undef IGNORE
#define IGNORE 0 /* Ignore SAP Type */
#else
#define IGNORE 0 /* Ignore SAP Type */
#endif /* IGNORE */
#define X25LINK 0 /* X25 Link */
#define X75LINK 1 /* X75 Link */
#define USER 0 /* acts as user */
#define NETWORK 1 /* acts as network */
#define SYM_USER 2 /* acts as symmetrical user */
/* defines for MxxStaInd */
#define ENTR_CONG 1 /* event - entering congst */
#define EXIT_CONG 2 /* event - exiting congest */
#define PROT_ST_UP 3 /* event - link up */
#define PROT_ST_DN 4 /* event - link down */
#define PROT_ERR 5 /* event - protocol error */
#define INV_REM 6 /* event - invalid remove */
#define LINK_ALIGNED 7 /* event - mtp 2 - link alignment */
#define ALIGN_LOST 8 /* event - mtp 2 - alignment lost */
#define ELEC_DOWN 9 /* event - scc - electrical interface down */
#define ELEC_UP 10 /* event - scc - electrical interface up */
#define REG_DOWN 11 /* event - mos - memory region down */
#define REG_UP 12 /* event - mos - memory region up */
#define INH_DEN 13 /* event - link inhibit denied */
#define INH_ACK 14 /* event - link inhibited */
#define UNINHED 15 /* event - link uninhibited */
#define UNINH_DEN 16 /* event - link uninhibit denied */
#define CONG_LVL_1 17 /* event - congestion level 1 */
#define CONG_LVL_2 18 /* event - congestion level 2 */
#define CIR_OUT_ORD 19 /* event - cirquit out of order */
#define CIRMGT_NORESP 20 /* event - no response to cirquit management message */
#define CIR_INVAL 21 /* event - invalid circuit */
#define CIR_VAL_FAIL 22 /* event - circuit validation failure */
#define CIR_VAL_SUCC 23 /* event - circuit validation success */
#define CIC_INVAL 24 /* event - invalid cic code */
#define CONT_FAIL 25 /* event - continuity failed */
#define CIR_UNEQUIP 49 /* event - circuit unequipped */
#define RMT_BLKD 50 /* event - link remotely blocked */
#define RMT_UNBLKD 51 /* event - link remotely unblocked */
#define CIR_IN_SERV 52 /* event - circuit back in service */
#define TERM_INIT_FAIL 53 /* event - terminal initialization failed */
#define ERROR_LOG 54 /* event - software error logged */
#define INV_EVENT (ERROR_LOG + 1) /* event - invalid */
/* ss7 switch defines */
/* #define SW_TST 0 switch - test */
#define SW_CCITT 1 /* switch - ccitt */
#define SW_ITU 1 /* switch - itu-t */
#define SW_CCITT88 1 /* switch - ccitt 88 */
#define SW_ANSI 2 /* switch - ansi */
#define SW_ANSI88 2 /* switch - ansi 88 */
#define SW_ANSI92 3 /* switch - ansi 92*/
#define SW_CCITT92 4 /* switch - ccitt 92 */
#define SW_SINGTEL 4 /* switch - singapore telecom */
#define SW_Q767 5 /* switch - int'l isup q.767 */
#define SW_CHINA 6 /* switch - china */
#ifndef CMFILE_REORG_1
/* defines for Q.93B */
/* parameter values that are at management and at upper interface */
/* switch defines */
#define SW_ATMF_UNI30 0 /* switch - ATM Forum UNI v3.0 */
#define SW_ATMF_UNI31 1 /* switch - ATM Forum UNI v3.1 */
#define SW_IISP_UNI30 2 /* switch - Interim Inter-Switch Signalling Protocol */
#define SW_IISP_UNI31 3 /* switch - Interim Inter-Switch Signalling Protocol */
#define SW_Q2931 4 /* switch - ITU - 2931 */
#define SW_ATMF_SIG_PNNI 5 /* switch - ATM Forum PNNI Signalling */
#define SW_ATMF_UNI40 6 /* switch - ATM Forum UNI v4.0 */
#define SW_INVALID 0xff /* switch - invalid value */
/* information element id's */
#define AM_ME_ETOETRANSDLY 0x42 /* End-to-End Transit Delay */
#define AM_ME_CONNNMB 0x4c /* Connected number */
#define AM_ME_CONNSAD 0x4d /* Connected Subaddress */
#define AM_ME_TFCDESC 0x59 /* ATM Traffic Descriptor */
#define AM_ME_BHILYRINFO 0x5d /* Broadband High Layer Info */
#define AM_ME_BLOLYRINFO 0x5f /* Broadband Low Layer Info */
#define AM_ME_CDPTYNMB 0x70 /* Called Party Number */
#define AM_ME_CDPTYSAD 0x71 /* Called Party Sub Address */
#define AM_ME_CDPTYSOFTPVC 0xe0 /* Called party soft PVPC/PVCC */
#define AM_ME_CRANKBACK 0xe1 /* Crankback */
#define AM_ME_DSGTRANLST 0xe2 /* Designated Transit list */
#define AM_ME_CGPTYSOFTPVC 0xe3 /* Calling party soft PVPC/PVCC */
#define AM_ME_MINACCTFCDESC 0x81 /* Minimum Acceptable Tfc. Desc. */
#define AM_ME_ALTTFCDESC 0x82 /* Alternative ATM Tfc. Desc. */
#define AM_ME_ABRSETUPPARAM 0x84 /* ABR Setup Parameters */
#define AM_ME_ABRADDPARAM 0xe4 /* ABR Additional Parameters */
#define AM_ME_EXTQOSPARAM 0xec /* Extended Qos Parameter */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -