亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sp_preprocopt.c

?? 著名的入侵檢測系統snort的最新版本的源碼
?? C
字號:
/* $Id$ *//* * sp_preprocopt.c * * 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 * * Purpose: *      Supports preprocessor defined rule options. * * Arguments: *      Required: *        None *      Optional: *        None * *   sample rules: *   alert tcp any any -> any any (msg: "DynamicRuleCheck"; ); * * Effect: * *      Returns 1 if the option matches, 0 if it doesn't. * * Comments: * * */#ifdef DYNAMIC_PLUGIN#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <sys/types.h>#include <stdlib.h>#include <ctype.h>#ifdef HAVE_STRINGS_H#include <strings.h>#endif#include <errno.h>#include "plugbase.h"#include "rules.h"#include "debug.h"#include "util.h"#include "sf_dynamic_engine.h"#include "sfghash.h"SFGHASH *preprocRulesOptions = NULL;extern const u_int8_t *doe_ptr;typedef struct _PreprocessorOptionInfo{    PreprocOptionInit optionInit;    PreprocOptionEval optionEval;    PreprocOptionCleanup optionCleanup;    void             *data;} PreprocessorOptionInfo;void PreprocessorRuleOptionsInit(){    preprocRulesOptions = sfghash_new(10, 0, 0, NULL);}void PreprocessorRuleOptionsFree(){    if (preprocRulesOptions)    {        sfghash_delete(preprocRulesOptions);        preprocRulesOptions = NULL;    }}int RegisterPreprocessorRuleOption(char *optionName, PreprocOptionInit initFunc,                                   PreprocOptionEval evalFunc,                                   PreprocOptionCleanup cleanupFunc){    int ret;    PreprocessorOptionInfo *optionInfo;    if (!preprocRulesOptions)    {        FatalError("Preprocessor Rule Option storage not initialized\n");    }    optionInfo = sfghash_find(preprocRulesOptions, optionName);    if (optionInfo)    {        FatalError("Duplicate Preprocessor Rule Option '%s'\n", optionName);    }    optionInfo = (PreprocessorOptionInfo *)SnortAlloc(sizeof(PreprocessorOptionInfo));    optionInfo->optionEval = evalFunc;    optionInfo->optionInit = initFunc;    ret = sfghash_add(preprocRulesOptions, optionName, optionInfo);    if (ret != SFGHASH_OK)    {        FatalError("Failed to initialize Preprocessor Rule Option '%s'\n");    }    return 0;}int GetPreprocessorRuleOptionFuncs(char *optionName, void **initFunc, void **evalFunc){    PreprocessorOptionInfo *optionInfo;    if (!preprocRulesOptions)    {        FatalError("Preprocessor Rule Option storage not initialized\n");    }    optionInfo = sfghash_find(preprocRulesOptions, optionName);    if (!optionInfo)    {        return 0;    }    *initFunc = optionInfo->optionInit;    *evalFunc = optionInfo->optionEval;    return 1;}/* Callback function for dynamic preprocessor options */int PreprocessorOptionFunc(Packet *p, struct _OptTreeNode *otn, OptFpList *fp_list){    PreprocessorOptionInfo *optionInfo;    const u_int8_t *cursor = NULL;    int       success;    optionInfo = (PreprocessorOptionInfo *) fp_list->context;    //  Call eval function    success = optionInfo->optionEval(p, &cursor, optionInfo->data);    if ( cursor )        doe_ptr = cursor;    //  If successful, call next function in chain    if ( success )        return fp_list->next->OptTestFunc(p, otn, fp_list->next);    return 0;}int AddPreprocessorRuleOption(char *optionName, OptTreeNode *otn, void *data, PreprocOptionEval evalFunc){    OptFpList *fpl;    PreprocessorOptionInfo *optionInfo;    PreprocessorOptionInfo *saveOptionInfo;    optionInfo = sfghash_find(preprocRulesOptions, optionName);        if (!optionInfo)        return 0;    saveOptionInfo = (PreprocessorOptionInfo *)SnortAlloc(sizeof(PreprocessorOptionInfo));    memcpy(saveOptionInfo, optionInfo, sizeof(PreprocessorOptionInfo));    saveOptionInfo->data = data;    //  Add to option chain with generic callback    fpl = AddOptFuncToList(PreprocessorOptionFunc, otn);    /*     * attach custom info to the context node so that we can call each instance     * individually     */    fpl->context = (void *) saveOptionInfo;    return 1;}#endif /* DYNAMIC_PLUGIN */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色哟哟日韩精品| 久久久久99精品一区| 久久综合一区二区| 亚洲国产精品久久人人爱蜜臀| 久久成人免费网| 色悠悠久久综合| 久久久久久久免费视频了| 亚洲电影视频在线| av一二三不卡影片| 26uuu精品一区二区三区四区在线| 一区二区三区精密机械公司| 国产电影精品久久禁18| 欧美精品久久99久久在免费线| 亚洲欧洲性图库| 风流少妇一区二区| 久久久久久久久一| 久久国产福利国产秒拍| 日本久久一区二区三区| 中文字幕一区av| 成人ar影院免费观看视频| 2020国产精品久久精品美国| 蜜臀精品一区二区三区在线观看| 91官网在线观看| 中文字幕在线观看不卡视频| 国产成人精品aa毛片| 日韩精品一区二区在线| 蜜臀91精品一区二区三区 | 日韩精品一区二区三区蜜臀| 亚瑟在线精品视频| 欧美高清www午色夜在线视频| 亚洲黄色免费网站| 91久久人澡人人添人人爽欧美| 中文字幕在线不卡视频| 成人av小说网| 亚洲欧美另类综合偷拍| 99久久精品国产一区二区三区| 国产精品欧美久久久久无广告| 国产99久久久国产精品| 国产欧美日韩一区二区三区在线观看 | 91欧美激情一区二区三区成人| 欧美国产视频在线| av不卡一区二区三区| 亚洲免费观看高清完整版在线 | 成人免费视频app| 欧美国产激情一区二区三区蜜月| 国产一区二区影院| 国产精品久久久久久久久果冻传媒 | 色久综合一二码| 亚洲国产一区二区三区| 51精品久久久久久久蜜臀| 精品亚洲porn| 国产无人区一区二区三区| 成人激情黄色小说| 亚洲综合自拍偷拍| 91精品国产综合久久久久久久 | 五月天网站亚洲| 日韩一区二区在线观看| 国产91精品露脸国语对白| 国产精品第一页第二页第三页| 99re视频精品| 日本成人在线电影网| 久久精品视频一区| 色呦呦日韩精品| 久久av资源网| 亚洲嫩草精品久久| 日韩你懂的电影在线观看| 懂色av中文字幕一区二区三区 | 国产精品激情偷乱一区二区∴| 一本大道久久a久久精二百| 日精品一区二区| 欧美激情在线一区二区三区| 欧美午夜理伦三级在线观看| 轻轻草成人在线| ...xxx性欧美| 欧美成人午夜电影| 91久久精品网| 国产精品一二三区在线| 亚洲国产综合在线| 国产亚洲综合av| 欧美一级高清大全免费观看| 成人视屏免费看| 日韩不卡免费视频| 中文字幕色av一区二区三区| 欧美一级xxx| 色吧成人激情小说| 国产大陆亚洲精品国产| 丝袜美腿亚洲色图| 中文字幕制服丝袜一区二区三区| 欧美精品九九99久久| 91捆绑美女网站| 韩国欧美国产一区| 视频在线观看一区二区三区| 国产色综合一区| 精品久久久久久综合日本欧美| 在线观看欧美精品| 99久久国产综合精品色伊 | 亚洲精品一线二线三线无人区| 色婷婷一区二区| 成人免费视频播放| 国产毛片精品视频| 奇米一区二区三区av| 精品国产乱码久久久久久图片| 91福利国产精品| aaa国产一区| 国产99久久久国产精品免费看| 韩国欧美一区二区| 欧美在线不卡一区| 91麻豆免费看| 91久久香蕉国产日韩欧美9色| 国产黄色91视频| 激情欧美一区二区| 蜜芽一区二区三区| 日韩高清在线观看| 亚洲一区二区欧美日韩| 亚洲男人的天堂一区二区| 亚洲欧美日韩在线| 亚洲丝袜另类动漫二区| 亚洲同性同志一二三专区| 欧美国产一区二区| 国产精品麻豆一区二区| 中文字幕在线观看一区二区| 成人免费一区二区三区在线观看| 国产精品传媒在线| 亚洲三级小视频| 亚洲伦在线观看| 亚洲理论在线观看| 午夜欧美视频在线观看| 秋霞影院一区二区| 国产一区二区电影| 粉嫩13p一区二区三区| 色综合一区二区| 欧美男人的天堂一二区| 日韩亚洲电影在线| 国产日韩欧美麻豆| ...xxx性欧美| 首页国产丝袜综合| 国产精品1024| 色综合天天狠狠| 欧美日韩一区在线观看| 日韩欧美激情一区| 国产精品麻豆久久久| 一区二区三区日韩欧美精品| 日韩影院精彩在线| 国产激情一区二区三区| 91麻豆.com| 精品国产乱码久久久久久影片| 中文字幕成人网| 日日噜噜夜夜狠狠视频欧美人| 国内一区二区在线| 在线免费观看日韩欧美| 日韩三级在线免费观看| 国产精品国产三级国产| 日本不卡一区二区三区| 大白屁股一区二区视频| 欧美日韩国产中文| 久久久影院官网| 午夜国产精品影院在线观看| 国产成人激情av| 91精品国产综合久久久久久久 | 欧美日韩美女一区二区| 精品久久国产97色综合| 亚洲综合男人的天堂| 久久国产尿小便嘘嘘尿| 欧美性猛交xxxx黑人交| 久久精品水蜜桃av综合天堂| 婷婷一区二区三区| www.在线欧美| 久久综合久久综合久久综合| 亚洲国产精品一区二区www| 高清av一区二区| 亚洲精品一区二区精华| 性做久久久久久久免费看| 成人av在线观| 国产校园另类小说区| 丝袜脚交一区二区| 一本色道**综合亚洲精品蜜桃冫| 精品国产在天天线2019| 午夜成人在线视频| 欧美在线|欧美| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 六月丁香婷婷久久| 欧美亚洲国产一区在线观看网站 | 亚洲与欧洲av电影| 成人精品鲁一区一区二区| 欧美成人激情免费网| 日韩黄色片在线观看| 色妞www精品视频| 综合在线观看色| 豆国产96在线|亚洲| 国产亚洲美州欧州综合国| 极品少妇xxxx精品少妇偷拍| 宅男在线国产精品| 五月激情综合婷婷| 337p亚洲精品色噜噜狠狠| 亚洲线精品一区二区三区八戒| 在线影院国内精品| 一区二区三区四区乱视频| 欧美在线短视频| 亚洲成在线观看| 在线不卡免费av|