⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gen.h

📁 中国石油二期加油站IC系统后台通讯软件
💻 H
📖 第 1 页 / 共 5 页
字号:
#define AM_XHLCI_TEL      0x01  /* Telephony - Recommendation G.711 */
#define AM_XHLCI_FAXG4    0x04  /* Facsimile Group 4 - Recommendation T.62 */
#define AM_XHLCI_DAPFAXG4 0x21  /* Doc App Profile for Facsimile Group 4 */
                             /* Recommendation T.503 */
#define AM_XHLCI_DAPMIXED 0x24  /* Doc App Profile for Facsimile Group 4 */
                             /* Recommendation T.501 */
#define AM_XHLCI_DAPPROC  0x28  /* Doc App Profile for Facsimile Group 4 */
                             /* Recommendation T.502 */
#define AM_XHLCI_TELETEX  0x31  /* Teletex - Recommendation T.62/T.70 */
#define AM_XHLCI_DAPVIDEO 0x32  /* Doc App Profile for Facsimile Group 4 */
                             /* Recommendation T.503 */
#define AM_XHLCI_TELEX    0x35  /* Telex */
#define AM_XHLCI_MHS      0x38  /* Message Handling System */
                             /* Recommendation X.400 */
#define AM_XHLCI_OSIAPP   0x41  /* OSI Application - Recommendation X.200 */
#define AM_XHLCI_MAINT    0x5e  /* Maintenance */
#define AM_XHLCI_MNGMT    0x5f  /* Management */
#define AM_XHLCI_VIDTEL   0x60  /* Videotelephony (F.xyz and AV.242) */
#define AM_XHLCI_RESERVE  0xff  /* Reserved */


/* ATM Traffic Descriptor tagging */

#define AM_ATD_TAGNOTREQ    0       /* tagging not requested */
#define AM_ATD_TAGREQ       1       /* tagging requested */

/* ATM Traffic Descriptor Frame discard */

#define AM_ATD_NOFRMDISC    0       /* frame discard not allowed */
#define AM_ATD_FRMDISC      1       /* frame discard allowed */

/* ATM Traffic Descriptor ABR specific token identifier */

#define AM_ATD_ABR_FMCR_ID  0x92    /* Forward ABR minimum cell rate identifier */
#define AM_ATD_ABR_BMCR_ID  0x93    /* Forward ABR minimum cell rate identifier */

/* crankback level indicator */

#define AM_CBLEVEL_IND       0x81    /* crankback level indicator */

/* succeeding end block indicator */

#define AM_ENDBLK_IND        0x82    /* succeeding end block indicator */

/* blocked node indicator */

#define AM_BLKNODE_IND       0x83    /* blocked node indicator */

/* blocked link indicator */

#define AM_BLKLINK_IND       0x84    /* blocked link indicator */

/* connection level id */

#define AM_CONLEVEL_ID       0x81    /* connection level id */

/* connection level */

#define AM_CONLEVEL_VCC      0x01    /* virtual channel connection */
#define AM_CONLEVEL_VPC      0x02    /* virtual path connection */

/* VPI/VCI selection type */

#define AM_VPCSEL_ANY        0x00    /* any VPI/VCI */
#define AM_VPCSEL_REQ        0x02    /* required VPI/VCI */
#define AM_VPCSEL_ASSGN      0x04    /* assigned VPI/VCI */

/* VPI id */

#define AM_VPI_ID            0x81    /* VPI id */

/* VCI id */

#define AM_VCI_ID            0x82    /* VCI id */

/* shaping indicator */

#define AM_SHAPIND_NOREQ     0x00    /* no user requirement */
#define AM_SHAPIND_NOAGG     0x01    /* no aggregation of user and OAM cells */

/* payload types */

#define ATMPT_USR   0     /* user cells */
#define ATMPT_RM    1     /* RM cells */
#define ATMPT_OAM   2     /* OAM cells */

/* values for lnkNmb parameter */

#define AMT_CON_LNK_UNUSED  0xffff  /* link number field not significant */


/* defines for LAN emulation */

/* MAC address length */

#define MACADDRLEN                    6  /* 48 bit MAC address length */

/* LANE and MAC header length */

#define LANE_HDR_LEN             2  /* 2 octet LANE header length */
#define LANE_MACHDR_LEN         14  /* 802.3 (DA/SA/Len), 802.5 (AC/FC/DA/SA) */

/* Additional broadband repeat indicators */

#define AM_REPIND_Q2763_1       0x00  /* reserved for use by Rec. Q.2763 */
#define AM_REPIND_Q2763_2i      0x01  /* reserved for use by Rec. Q.2763 */

/* values for AC/FC fields - to be ignored */

#define LANE_HDR_8025_AC           0x00  /* no significance */
#define LANE_HDR_8025_FC           0x40  /* LLC frame, priority 0 */

/* value for pad octets */

#define LANE_PAD                   0x00  /* pad octets */

/* source routed frame types */

#define LANE_FRAMETYPE_NSR         0x00  /* not source routed */
#define LANE_FRAMETYPE_SRF         0x01  /* specifically routed frame */
#define LANE_FRAMETYPE_ARE         0x02  /* all routes explorer frame */
#define LANE_FRAMETYPE_STE         0x03  /* spanning tree explorer frame */
#define LANE_FRAMETYPE_ERR         0x04  /* illegal frame type */

/* next hop types for SRF frames */

#define LANE_NEXTHOP_NONE          0x00  /* no hop */
#define LANE_NEXTHOP_LAST          0x01  /* last hop */
#define LANE_NEXTHOP_MORE          0x02  /* more hops */

/* maximum sizes for typedef arrays */

#define MAX_LANNAME                  32  /* size of LAN name string */
#define MAX_MACADDRTBL               16  /* size of MAC address table */
#define MAX_RDTBL                    16  /* size of route descriptor table */
#define MAX_TLV_LEN                   4  /* max length of value in TLV entry */
#define MAX_TLV_TBL                  16  /* size of TLV table */

/* marker (special LEC id) */

#define LANE_MARKER_CTRL         0xff00  /* control frame marker */
 
/* LAN emulation protocol */

#define LANE_PROTOCOL              0x01  /* LAN Emulation protocol */
 
/* LAN emulation protocol version */

#define LANE_VERSION               0x01  /* LAN Emulation protocol version */

/* op code type */

#define LANE_OPCODE_TYPE_REQ       0x00  /* request frame */
#define LANE_OPCODE_TYPE_RSP       0x01  /* response frame */

/* op code name */

#define LANE_OPCODE_CFGREQ       0x0001  /* configuration request  frame */
#define LANE_OPCODE_CFGRSP       0x0101  /* configuration response frame */
#define LANE_OPCODE_JOINREQ      0x0002  /* join request  frame */
#define LANE_OPCODE_JOINRSP      0x0102  /* join response frame */
#define LANE_OPCODE_READYQUERY   0x0003  /* ready query  frame */
#define LANE_OPCODE_READYIND     0x0103  /* ready indication frame */
#define LANE_OPCODE_REGREQ       0x0004  /* register request  frame */
#define LANE_OPCODE_REGRSP       0x0104  /* register response frame */
#define LANE_OPCODE_UNREGREQ     0x0005  /* unregister request  frame */
#define LANE_OPCODE_UNREGRSP     0x0105  /* unregister response frame */
#define LANE_OPCODE_ARPREQ       0x0006  /* configuration request  frame */
#define LANE_OPCODE_ARPRSP       0x0106  /* configuration response frame */
#define LANE_OPCODE_FLUSHREQ     0x0007  /* flush request  frame */
#define LANE_OPCODE_FLUSHRSP     0x0107  /* flush response frame */
#define LANE_OPCODE_NARPREQ      0x0008  /* negative ARP request frame */
#define LANE_OPCODE_TOPCHREQ     0x0009  /* topology change request  frame */

/* status */

#define LANE_STA_SUCCESS              0  /* success */
#define LANE_STA_UNSUPPVER            1  /* version not supported */
#define LANE_STA_INVPARAM             2  /* invalid request parameters */
#define LANE_STA_DUPLANDST            4  /* duplicate LAN destination */
#define LANE_STA_DUPATMADDR           5  /* duplicate ATM address */
#define LANE_STA_RESUNAVAIL           6  /* insufficient resources to grant request */
#define LANE_STA_NOACCESS             7  /* access denied */
#define LANE_STA_INVLECID             8  /* invalid requestor-LECID */
#define LANE_STA_INVLANDST            9  /* invalid LAN destination */
#define LANE_STA_INVATMADDR          10  /* invalid ATM address */
#define LANE_STA_NOCFG               20  /* no configuration */
#define LANE_STA_LECSERR             21  /* LECS error */
#define LANE_STA_INFOUNAVAIL         22  /* insufficient information */

/* non-standard status values, for internal use */

#define LANE_STA_INVCTRL         0x0f00  /* invalid control frame - unspecified */

/* flag values */

#define LANE_FLAG_RMTADDR        0x0001  /* remote address (unreg LAN dst) */
#define LANE_FLAG_PROXY          0x0080  /* LEC acts as proxy */
#define LANE_FLAG_TOPCH          0x0100  /* topology change */

/* tag values for LAN destination type */

#define LANE_TAG_NOTPRSNT        0x0000  /* not present */
#define LANE_TAG_MACADDR         0x0001  /* MAC address */
#define LANE_TAG_RD              0x0002  /* route designator */

/* LAN type */

#define LANE_LANTYPE_UNSPECIFIED   0x00  /* unspecified */
#define LANE_LANTYPE_8023          0x01  /* IEEE 802.3/Ethernet */
#define LANE_LANTYPE_8025          0x02  /* IEEE 802.5/Token Ring */

/* min frame size - values */

#define LANE_MIN_DATA_8023           62  /* minimum AAL SDU size for IEEE 802.3 data */
#define LANE_MIN_DATA_8025           16  /* minimum AAL SDU size for IEEE 802.5 data */
#define LANE_MIN_CTRL               108  /* minimum AAL SDU size for control frame */

/* max frame size - index */

#define LANE_MTU_IDX_UNSPECIFIED   0x00  /* unspecified */
#define LANE_MTU_IDX_ENET          0x01  /* 1516 octets IEEE 802.3 */
#define LANE_MTU_IDX_TR_4          0x02  /* 4544 octets IEEE 802.5 4Mbps */
#define LANE_MTU_IDX_RFC1626       0x03  /* 9234 octets RFC  1626 */
#define LANE_MTU_IDX_TR_16         0x04  /* 18190 octets IEEE 802.5 16Mbps */

/* max frame size - values */

#define LANE_MTU_VAL_UNSPECIFIED      0  /* unspecified */
#define LANE_MTU_VAL_ENET          1516  /* 1516 octets IEEE 802.3 */
#define LANE_MTU_VAL_TR_4          4544  /* 4544 octets IEEE 802.5 4Mbps */
#define LANE_MTU_VAL_RFC1626       9234  /* 9234 octets RFC  1626 */
#define LANE_MTU_VAL_TR_16        18190  /* 18190 octets IEEE 802.5 16Mbps */

/* VCC nature */

#define VCC_NATURE_PVC                0  /* permanent virtual circuit */
#define VCC_NATURE_SVC                1  /* switched virtual circuit */
#define  VCC_NATURE_PVC_SVC           2  /* mixed PVC/SVC */

/* VCC type (values from LEC MIB) */

#define LANE_VCC_TYPE_CTRL_DIR        0  /* control direct VCC */
#define LANE_VCC_TYPE_CTRL_DIST       1  /* control distribute VCC */
#define LANE_VCC_TYPE_MCAST_SND_8023  2  /* multicast send VCC for 802.3 */
#define LANE_VCC_TYPE_MCAST_FWD_8023  3  /* multicast forward VCC for 802.3 */
#define LANE_VCC_TYPE_MCAST_SND_8025  4  /* multicast send VCC for 802.5 */
#define LANE_VCC_TYPE_MCAST_FWD_8025  5  /* multicast forward VCC for 802.5 */
#define LANE_VCC_TYPE_DATA_DIR_8023   6  /* data direct VCC for 802.3 */
#define LANE_VCC_TYPE_DATA_DIR_8025   7  /* data direct VCC for 802.5 */
#define LANE_VCC_TYPE_UNKNOWN         8  /* unclassified VCC */
#define LANE_VCC_TYPE_CFG_DIR         9  /* cfg direct VCC */

/* LAN destination proxy class */

#define LANE_CLASS_LOCAL              0  /* local LAN destination */
#define LANE_CLASS_PROXY              1  /* proxy LAN destination */

/* LAN destination mode (type) */

#define LANE_LDMODE_UCAST_MACADDR     0  /* unicast MAC address */
#define LANE_LDMODE_MCAST_MACADDR     1  /* multicast MAC address */
#define LANE_LDMODE_MCAST_ALLGRP      2  /* all group addresses */
#define LANE_LDMODE_MACADDR           3  /* MAC address */
#define LANE_LDMODE_RD                4  /* route descriptor */
#define LANE_LDMODE_UCAST_ALLUNI      5  /* all unicast addresses */

/* configuration mode */

#define LANE_CFGMODE_AUTO             0  /* auto cfg (use LECS ATM addr) */
#define LANE_CFGMODE_MANUAL           1  /* manual cfg (use LES ATM addr) */

/* ATM Forum OUI - 3 octets */

#define OUI_ATMF               0x00a03e  /* ATM Forum OUI */

/* LAN Emulation Protocol Ids - 2 octets */

#define LANE_PID_CTRL            0x0001  /* control VCCs */
#define LANE_PID_DATA_DIR_8023   0x0002  /* data direct VCCs for IEEE 802.3 */
#define LANE_PID_DATA_DIR_8025   0x0003  /* data direct VCCs for IEEE 802.5 */
#define LANE_PID_MCAST_8023      0x0004  /* multicast   VCCs for IEEE 802.3 */
#define LANE_PID_MCAST_8025      0x0005  /* multicast   VCCs for IEEE 802.5 */

/* LAN Emulation standard TLV types - 4 octets */

#define LANE_TLV_C7              0x00a03e01  /* control timer */
#define LANE_TLV_C10             0x00a03e02  /* max unknown frame count */
#define LANE_TLV_C11             0x00a03e03  /* max unknown frame timer */
#define LANE_TLV_C12             0x00a03e04  /* VCC aging timer */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -