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

📄 _meta.c

📁 This is the snapshot of Snot Latest Rules
💻 C
字号:
#include <stdio.h>#include <string.h>#include "sf_snort_plugin_api.h"#include "sf_dynamic_meta.h"#include "_meta.h"extern Rule *rules[];DETECTION_LINKAGE int InitializeDetection(){    return RegisterRules(rules);}DETECTION_LINKAGE int DumpSkeletonRules(){    return DumpRules(DETECTION_LIB_NAME, rules);}DETECTION_LINKAGE int LibVersion(DynamicPluginMeta *dpm){    dpm->type  = TYPE_DETECTION;    dpm->major = DETECTION_LIB_MAJOR;    dpm->minor = DETECTION_LIB_MINOR;    dpm->build = DETECTION_LIB_BUILD;    strncpy(dpm->uniqueName, DETECTION_LIB_NAME, MAX_NAME_LEN);    return 0;}DETECTION_LINKAGE int EngineVersion(DynamicPluginMeta *dpm){    dpm->type  = TYPE_ENGINE;    dpm->major = REQ_ENGINE_LIB_MAJOR;    dpm->minor = REQ_ENGINE_LIB_MINOR;    dpm->build = 0;    strncpy(dpm->uniqueName, REQ_ENGINE_LIB_NAME, MAX_NAME_LEN);    return 0;}

⌨️ 快捷键说明

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