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

📄 mplsfun.h

📁 路由器协议平台mpls协议的设计与实现源代码。
💻 H
字号:
/********************************************************************          
*	Product Name:	ZXB10                                       	          
*	Module  Name:	EPPC    										
*	File    Name:   mplsfun.h								        	          
*	Function    :	definition of marco for mpls part 
*   History:
*   Date          Version        modifier         Activities 
* ==================================================================
*   01-8-9         2.1.2        Sun Baoping        create		
********************************************************************/ 

#ifndef MPLSFUN_H                                                              
#define MPLSFUN_H 
#include "mplsldp.h"
#include "mplslsp.h"
#include "mplslsr.h"
#include "_noalign.h"

#define NOLSRATTR     0     /* arrayLen[0]       对应表 mplsLsrAttrEntry 的实际长度,为空的不记 */
#define NOIFCONF      1     /* arrayLen[1]       对应表 mplsInterfaceConfEntry 的实际长度,为空的不记  */
#define NOTRAFP       2     /* arrayLen[2]       对应表 mplsTrafficParamEntry 的实际长度,为空的不记   */
#define NOENTITY      3     /* arrayLen[3]       对应表 mplsLdpEntityEntry 的实际长度,为空的不记  */
#define NOATMPARA     4     /* arrayLen[4]       对应表 mplsLdpEntityAtmParamsEntry 的实际长度,为空的不记  */
#define NOATMLABEL    5     /* arrayLen[5]       对应表 mplsLdpEntityConfAtmLabelRangeEntry 的实际长度,为空的不记  */
#define NOENTITYSTATS 6     /* arrayLen[6]       对应表 mplsLdpEntityStatsEntry 的实际长度,为空的不记  */
#define NOPEER        7     /* arrayLen[7]       对应表 mplsLdpPeerEntry 的实际长度,为空的不记  */
#define NOADJACENCY   8     /* arrayLen[8]       对应表 mplsLdpHelloAdjacencyEntry 的实际长度,为空的不记  */
#define NOSESSION     9     /* arrayLen[9]       对应表 mplsLdpSessionEntry 的实际长度,为空的不记   */
#define NOSESTATS     10    /* arrayLen[10]      对应表 mplsLdpSessionStatsEntry 的实际长度,为空的不记  */
#define NOERLSP       11    /* arrayLen[11]      对应表 mplsErLspEntry 的实际长度,为空的不记  */
#define NOLFIB        12    /* arrayLen[12]      对应表 mplsForwardingEntry 的实际长度,为空的不记  */
#define NOENTIPARAM   13    /* arrayLen[13]      对应表 mplsLdpEntityParamEntry 的实际长度,为空的不记  */
#define NOTRANSADDR   14    /* arrayLen[14]      对应表 mplsIfTransportAddressEntry 的实际长度,为空的不记  */
#define NOLIB         15    /* arrayLen[15]      对应表 mplsLibEntry 的实际长度,为空的不记  */
#define NODISCOVERY   16    /* arrayLen[16]      对应表 mplsLdpDiscoveryEntry 的实际长度,为空的不记  */
#define NOATMSESSION  17    /* arrayLen[17]      对应表 mplsLdpAtmSessionEntry 的实际长度,为空的不记  */
#define NOSESSIONPEER 18    /* arrayLen[18]      对应表 mplsLdpSessionPeerAddressEntry 的实际长度,为空的不记  */
#define NOHOPLSP      19    /* arrayLen[19]      对应表 mplsHopLspEntry 的实际长度,为空的不记  */
#define NOATMCAP      20    /* arrayLen[20]      对应表 mplsAtmLdpCapEntry 的实际长度,为空的不记 */
#define NOGENlABEL    21    /* arrayLen[21]      对应表 mplsLdpEntityConfGenericLabelRangeEntry 的实际长度,为空的不记 */
#define NOGENSSN      22    /* arrayLen[22]      对应表 mplsLdpGeneralSessionEntry 的实际长度,为空的不记 */



/* MAX VALUES ON ONE LSR DEFINED */
#define MPLS_LDP_INTERFACE_MAX      84   /* 1 */
#if 0
#define MPLS_LDP_LIC_MAX			128   /* 2 */
#define MPLS_LDP_HELLO_MAX			128   /* 3 */
#endif
#define MPLS_LDP_SESSION_MAX		256   /* 4 */
#define MPLS_LDP_PEER_MAX			256   /* 5 */
#define MPLS_LDP_LSP_MAX			256   /* 6 */
#define MAX_PORTS_ONE_BORAD         256

#define MPLS_DATA_ARRAY_MAX         50


 /*   7   6    5     4   3   2   1   0
     res|res|weight|EBS|CBS|CDR|PBS|PDR| */
     
#define WEIGHTFLAGOR    32
#define WEIGHTFLAGAND   31
#define EBSFLAGOR       16
#define EBSFLAGAND      47
#define CBSFLAGOR       8
#define CBSFLAGAND      55
#define CDRFLAGOR       4
#define CDRFLAGAND      59
#define PBSFLAGOR       2
#define PBSFLAGAND      61
#define PDRFLAGOR       1
#define PDRFLAGAND      62

#define PORTNOTEXIST  65535

/* module port ifIndex struct */
typedef struct{
    unsigned char      module;
    unsigned char      port;
    unsigned short     ifIndex;
}MPLS_PACK modulePortIfIndex_t;

#include "_restore.h"
#endif

⌨️ 快捷键说明

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