sp_dynamic.h

来自「著名的入侵检测系统snort的最新版本的源码」· C头文件 代码 · 共 64 行

H
64
字号
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as * published by the Free Software Foundation.  You may not use, modify or * distribute this program under any other version of the GNU General * Public License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Copyright (C) 2005 Sourcefire Inc. * * Author: Steven Sturges * *//* $Id$ */#ifndef __SP_DYNAMIC_H_#define __SP_DYNAMIC_H_#include "sf_dynamic_engine.h"typedef struct _DynamicData{    void *contextData;    OTNCheckFunction checkFunction;    OTNHasFunction hasFlowFunction;    OTNHasFunction hasFlowbitFunction;    int fpContentFlags;    GetFPContentFunction fastPatternContents;    OTNHasFunction hasContentFunction;    OTNHasFunction hasByteTestFunction;    OTNHasFunction hasPCREFunction;} DynamicData;void SetupDynamic(void);int RegisterDynamicRule(u_int32_t gid, u_int32_t sid, void *info,                        OTNCheckFunction chkFunc,                        OTNHasFunction hasFlowFunc,                        OTNHasFunction hasFlowbitFunc,                        OTNHasFunction hasContentFunc,                        OTNHasFunction hasByteTestFunc,                        OTNHasFunction hasPCREFunc,                        int fpContentFlags, GetFPContentFunction fpFunc);u_int32_t DynamicFlowbitRegister(char *name, int op);int DynamicFlowbitCheck(void *pkt, int op, u_int32_t id);int DynamicAsn1Detect(void *pkt, void *ctxt, const u_int8_t *cursor);int DynamicHasFlow(OptTreeNode *otn);int DynamicHasFlowbit(OptTreeNode *otn);int DynamicHasContent(OptTreeNode *otn);int DynamicHasByteTest(OptTreeNode *otn);int DynamicHasPCRE(OptTreeNode *otn);#endif  /* __SP_DYNAMIC_H_ */

⌨️ 快捷键说明

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