?? combrio_rule.h
字號:
#ifndef __COMBRIO_RULE_H#define __COMBRIO_RULE_H#include <PlxIoctl.h>/*typedef struct _RuleAction{ unsigned char store_flag:1; unsigned char sample_flag:1; unsigned char forward_flag:1; unsigned char statistics_flag:1; unsigned char slice_flag:1; unsigned char drop_flag:1; unsigned char RSV:2; }RULE_ACTION;*/typedef struct _RuleElement{ int CamIndex; /*5 duples information*/ unsigned long dip; unsigned long dip_mask; unsigned long sip; unsigned long sip_mask; unsigned short dp; unsigned short sp; unsigned char pt; struct _RuleElement * next; struct _RuleElement *orBrother;}RULE_ELEMENT;typedef struct _AppRule{ char *strRule; RULE_ACTION stRuleAct; unsigned char ucPri; RULE_ELEMENT *filterSubRuleArray; RULE_ELEMENT *statSubRuleArray; }APP_RULE;typedef struct _AppRuleManger{ APP_RULE * AppRuleArray; char *cWorkBuf;}APP_RULE_MANAGER;typedef struct _SyntaxTree{ char *value; int wordCnt; unsigned char type; struct _SyntaxTree *left; struct _SyntaxTree *right; struct _SyntaxTree *next; struct _SyntaxTree *prev; }SYNTAX_TREE;/* Moved from combrio_com.h */typedef struct tgcombrio_lib{ int fd; int appID; /*data receive*/ int dataBufNum; PCI_MEMORY dataBuf[5]; /*statistics */ PCI_MEMORY statBuf; APP_RULE_MANAGER ruleManager; int sliceLen; }COMBRIO_LIB;int CombrioMMap(COMBRIO_LIB *p, PCI_MEMORY *pstMMapAddr);int CombrioUnMMap(PCI_MEMORY *pstMMapAddr);/******************************/#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -