?? gen.x
字號:
typedef U32 SeqU24; /* unsigned 24 bit sequence number */
typedef U8 SetUpArb; /* set up arbitration (PASSIVE/ACTIVE) */
typedef U8 EvntType; /* event type */
typedef U8 State; /* state */
typedef U8 Mode; /* mode */
typedef S32 ConnId; /* connection id */
typedef U32 UConnId; /* unsigned connection id */
typedef U16 ProtId; /* protocol id */
typedef U16 ChannelId; /* channel id */
typedef U16 MibOpCode; /* Op code for Mib Request MIB_REQUEST_GET,
MIB_REQUEST_GET_FIRST, MIB_REQUEST */
typedef U16 MibStatus; /* Status returned in Mib Cfm */
typedef U16 MibTblType; /* table type */
typedef S32 MibReqId; /* request identifier */
typedef U8 UstaType; /* unsolicited status type */
/* ATM typedefs */
#ifndef CMFILE_REORG_1
typedef U16 AtmVpci; /* ATM virtual path connection id */
typedef U16 AtmVpi; /* ATM virtual path id */
typedef U16 AtmVci; /* ATM virtual channel id */
typedef U8 AtmLp; /* ATM loss priority */
typedef U8 AtmCi; /* ATM congestion indication */
typedef U8 AtmRs; /* ATM reception status */
typedef U8 AtmUu; /* ATM user-to-user field in CPCS PDUs */
typedef U32 AtmUui; /* ATM user-to-user indication field in SSCOP PDUs */
typedef U8 AtmPt; /* ATM cell payload type */
typedef struct atmQos /* ATM quality of service */
{
U8 qosFwd; /* qos in forward direction */
U8 qosBwd; /* qos in backward direction */
} AtmQos;
/* Vitual channel structure */
typedef struct amVccId /* virtual channel connection identifier */
{
AtmVpci vpci; /* virtual path connection identifier */
AtmVci vci; /* virtual channel identifier */
} AmVccId;
/* VCC id */
typedef struct atmVccId /* VCC id */
{
AtmVpi vpi; /* VPI */
AtmVci vci; /* VCI */
} AtmVccId;
/* VCC table */
typedef struct atmVccTbl /* VCC table */
{
U16 count; /* number of VCCs */
AtmVccId tbl[MAX_ATMVCCTBL_SZ]; /* VCC list */
} AtmVccTbl;
/* Generic ATM address */
typedef struct atmAddr
{
U8 type; /* type of Address (AESA or E.164) */
U8 len; /* length (bytes) */
U8 strg[ADRLEN]; /* address string */
} AtmAddr;
/* ATM address table */
typedef struct atmAddrTbl /* ATM address table */
{
U16 count; /* number of ATM addresses */
AtmAddr tbl[MAX_ATMADDRTBL_SZ]; /* ATM address list */
} AtmAddrTbl;
typedef struct atmTfcDesc /* ATM traffic descriptor */
{
U32 fwdPeakCellRate0; /* forward peak cell rate, CLP = 0 */
U32 bwdPeakCellRate0; /* backward peak cell rate, CLP = 0 */
U32 fwdPeakCellRate1; /* forward peak cell rate, CLP = 0+1 */
U32 bwdPeakCellRate1; /* backward peak cell rate, CLP = 0+1 */
U32 fwdSustCellRate0; /* forward sust. cell rate, CLP = 0 */
U32 bwdSustCellRate0; /* backward sust. cell rate, CLP = 0 */
U32 fwdSustCellRate1; /* forward sust. cell rate, CLP = 0+1 */
U32 bwdSustCellRate1; /* backward sust. cell rate, CLP = 0+1 */
U32 fwdMeanBurstSize0; /* forward mean burst size, CLP = 0 */
U32 bwdMeanBurstSize0; /* backward mean burst size, CLP = 0 */
U32 fwdMeanBurstSize1; /* forward mean burst size, CLP = 0+1 */
U32 bwdMeanBurstSize1; /* backward mean burst size, CLP = 0+1 */
Bool bstEffortReq; /* best effort requested */
Bool fwdTagReq; /* tagging requested in forward direction */
Bool bwdTagReq; /* tagging requested in backward direction */
} AtmTfcDesc;
#endif /* CMFILE_REORG_1 */
/* scc typedefs */
typedef S16 Baud; /* baud */
typedef S16 PhysIntType; /* physical interface type */
typedef S16 PathConnType; /* path connection type */
typedef S16 Parity; /* parity */
typedef S16 CharLength; /* character length */
typedef S16 StopBits; /* stop bits */
/* tcp/ip typedefs */
typedef U32 IpAddr; /* IP address */
typedef U16 Port; /* TCP/UDP port */
typedef U8 Cmd; /* command */
typedef U8 Flags; /* TCP/UDP flags */
typedef U8 Ttl; /* time to live */
typedef U8 Prec; /* TCP/UDP precedence */
typedef U32 Window; /* TCP/UDP window */
typedef U8 MtpStatus; /* MTP status */
typedef U8 Credit; /* credit */
/* ISUP typedefs */
typedef U32 CirId; /* circuit Id */
typedef U16 Cic; /* cic */
typedef U32 SiInstId; /* instance id */
/* B-ISUP typedefs */
typedef U32 BiInstId; /* instance id */
/* TUP typedefs */
typedef U32 TpInstId; /* instance id */
/* LLC/SNAP definitions */
typedef U32 Oui; /* 3-octet OUI in SNAP header */
typedef U16 Pid; /* 2-octet protocol id in SNAP header */
typedef U32 LlcId; /* LLC id */
#ifndef CMFILE_REORG_1
/* q.93b typedefs */
typedef S32 AmInstId; /* service user/provider instance id */
typedef U16 AmEndptRefType; /* endpoint reference */
typedef U32 AmSeqNmb; /* sequence number */
/* q.saal typedefs */
typedef U16 AsErrorCode; /* q.saal error code (Q.SAAL1 Appendix 1) */
/* ume typedefs */
typedef U32 UmInteger; /* ume integer */
typedef struct umObjId /* ume object identifier */
{
Data length; /* length of string */
UmInteger strg[UM_MAXLEN_OBJ_ID]; /* string of sub-identifiers */
} UmObjId;
typedef struct umMib UmMib; /* ume mib */
/*
* LAN Emulation typedefs
*/
/* general typedefs */
typedef U16 LecId; /* LEC Id */
typedef U8 Protocol; /* protocol */
typedef U8 Version; /* version */
typedef U16 OpCode; /* op code in control frames */
typedef U16 LaneStatus; /* status in control frames */
typedef U32 TransId; /* transaction id */
typedef U16 LaneFlags; /* flags in control frames */
typedef U8 LanType; /* LAN type */
typedef U8 MtuIdx; /* max frame size - index */
typedef U16 MtuVal; /* max frame size - value */
typedef U16 Tag; /* tag indicating LAN destination type */
typedef U8 VccNature; /* VCC nature - SVC, PVC, etc. */
typedef U8 VccType; /* VCC type - control, data, etc */
typedef U8 ProfileId; /* HCC profile id */
typedef struct lanName /* LAN name */
{
U8 length; /* length of string */
U8 strg[MAX_LANNAME]; /* name string */
} LanName;
/* LAN destination typedefs */
typedef struct macAddr /* MAC address */
{
U8 strg[MACADDRLEN]; /* address string */
} MacAddr;
typedef struct macAddrTblEntry /* entry in table of MAC addresses */
{
U8 proxyClass; /* proxy class - local, learned */
MacAddr macAddr; /* MAC address */
} MacAddrTblEntry;
typedef struct macAddrTbl /* table of MAC addresses */
{
U8 count; /* number of entries */
MacAddrTblEntry tbl[MAX_MACADDRTBL]; /* table of MAC addresses */
} MacAddrTbl;
typedef struct rd /* route designator */
{
U16 lanId; /* LAN id, segment id - 12 bits */
U8 bridgeId; /* bridge id - 4 bits */
} Rd;
typedef struct rdTblEntry /* entry in table of route designators */
{
Rd rd; /* route designator */
} RdTblEntry;
typedef struct rdTbl /* table of route designators */
{
U8 count; /* number of entries */
RdTblEntry tbl[MAX_RDTBL];/* table of route designator */
} RdTbl;
typedef struct lanDst /* LAN destination - MAC addr, route desg */
{
Tag tag; /* LAN destination type */
union
{
MacAddr macAddr; /* MAC address */
Rd rd; /* route designator */
} ld;
} LanDst;
/* control frame typedefs */
typedef struct laneCtrlHdr /* control frame header */
{
LecId marker; /* control frame marker */
Protocol protocol; /* LANE protocol */
Version version; /* LANE version */
OpCode opCode; /* operation code */
LaneStatus status; /* request status */
TransId transId; /* transaction id */
LecId reqLecId; /* requestor LEC id */
LaneFlags flags; /* bit flags */
LanDst srcLanDst; /* source LAN destination */
LanDst dstLanDst; /* target LAN destination */
Addrs srcAtmAddr; /* source ATM address */
Addrs dstAtmAddr; /* target ATM address */
LanType lanType; /* LAN type */
MtuIdx mtuIdx; /* MTU */
U8 nmbTLV; /* number of TLV entries in list */
LanName lanName; /* LAN name */
} LaneCtrlHdr;
typedef struct laneTLVEnt /* type-length-value entry */
{
U32 type; /* type of value */
U8 length; /* length of value */
U8 value[MAX_TLV_LEN]; /* value */
} LaneTLVEnt;
typedef struct laneCfg /* configuration frame */
{
LaneTLVEnt tlvTbl[MAX_TLV_TBL]; /* list of TLV entries */
} LaneCfg;
typedef struct laneCtrlFrame /* all control frames */
{
LaneCtrlHdr hdr; /* frame header */
union /* remainder of frame */
{
LaneCfg cfg; /* configuration frame */
} m;
} LaneCtrlFrame;
/* PNNI typedefs */
/* pnni port id */
typedef U32 PnPortId;
/* pnni node Id */
typedef struct pnNodeId
{
U8 id[PN_NODEID_LEN];
} PnNodeId;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -