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

📄 ldpfwd.h

📁 技术文件名称:MPLSv1.0软件模块测试规程
💻 H
字号:

#ifndef LDPFWD_H
#define LDPFWD_H

#include "ldpcomn.h"

#include "_noalign.h"

typedef struct{
    unsigned char	module;
	unsigned char	port;
}MPLS_PACK mplsLdpPhyPort;

typedef struct
{
	unsigned char		mplsLdpFtnMask;    /* sourceAddr(0),
                                              destAddr(1),
                                              sourcePort(2),
                                              destPort(3),
                                              protocol(4),
                                              expBits(5)*/
	unsigned char       mplsLdpFtnAddrType;   /* only IPv4 (1)  Ipv6(2)*/
	unsigned long       mplsLdpFtnSourceAddrMin; 
	unsigned long       mplsLdpFtnSourceAddrMax; 
	unsigned long       mplsLdpFtnDestAddrMin;
	unsigned long       mplsLdpFtnDestAddrMax;
	unsigned long       mplsLdpFtnSourcePortMin;  /* 0 -- 65535 */
	unsigned long       mplsLdpFtnSourcePortMax;  /* 0 -- 65535 */
	unsigned long       mplsLdpFtnDestPortMin;    /* 0 -- 65535 */
	unsigned long       mplsLdpFtnDestPortMax;    /* 0 -- 65535 */
	unsigned short      mplsLdpFtnProtocol;       /* 0 -- 65535 */
	unsigned short      mplsLdpFtnAction;   /* drop(1), discard this packet
                                               redirectLsp(2), redirect into LSP
                						       redirectTunnel(3), redirect into Tunnel */
	unsigned long       mplsLdpFtnExp;      /* EXP bit */
	mplsLdpPhyPort      mplsLdpFtnPhyPorts[8];    /* te lsp traffic filter phy ports */
	unsigned char       metric;      /* 2002/12/16 */
} MPLS_PACK mplsLdpFtnEntry;

typedef struct
{
	mplsLdpAtmLabel    upAtmLabel;    /* up atm label */
	mplsLdpAtmLabel    downAtmLabel;  /* down atm label */
	unsigned long      upGenLabel;    /* up gen label */
	unsigned long      downGenLabel;  /* down gen label */
	unsigned char      uplabelValid;  
#define UP_ATM_VALID	1
#define UP_GEN_VALID	2
#define UP_UNVALID		0
    unsigned char      downLabelValid; 
#define DOWN_UNVALID	0
#define DOWN_ATM_VALID	1
#define DOWN_GEN_VALID	2 
    /* tran : 1; rec: 2, none :0  */ 
    unsigned char      trans_flag;   /* 表征ATM标记方向性 */
} MPLS_PACK mplsLdpXCLabel;

typedef struct
{
	mplsLdpFtnEntry    ftnFec;      /* 需要同步的FEC */
	unsigned long      nexthop;     /* 下一跳地址 */
    unsigned short     outIfindex;  /* 下一跳输出端口 */
	unsigned char      module;      /* 下一跳输出模块号 */
	mplsLdpXCLabel     xcLabel;     /* 交叉连接表,对crlsp上游标记可能无效 */
	unsigned long      pdr;         /* 转发打开Sar的流量参数(字节为单位)*/
	unsigned long      pbs;
	unsigned long      cdr;
	unsigned long      cbs;
	unsigned long      ebs;
	/* CBR, UBR, VBR, rtVBR  */ 
	unsigned char	  servicetype; 
	unsigned char      needOperSar;  /* 是否需要操作SAR,当FEC聚合时,
	                                    第一个FEC需要openSar,
	                                    最后一个撤销时,需要closeSar */
	unsigned char      Operaction; /* 0: create; 1: delete */
	unsigned char	   lspType;
	unsigned long      index;		/* 缓冲匹配使用 */
	unsigned char       metric;      /* 2002/12/16 */
	unsigned char      encapmode;   /*2004-4-2 lixia add for encapsulation*/
} MPLS_PACK mplsLdpFecLabel;

typedef struct {
	unsigned long index;
} MPLS_PACK LBLREQ_CONF;

#include "_restore.h"
#endif

⌨️ 快捷键说明

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