combrio_rule.h

来自「LInux BootLoader的说明文档」· C头文件 代码 · 共 100 行

H
100
字号
#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 + =
减小字号Ctrl + -
显示快捷键?