next up previous contents
Next: 5.3 Examples Up: 5. Dynamic Modules Previous: 5.1 Data Structures   Contents

Subsections

5.2 Required Functions

Each dynamic module must define a set of functions and data objects to work within this framework.

5.2.1 Preprocessors

Each dynamic preprocessor library must define the following functions. These are defined in the file sf_dynamic_preproc_lib.c. The metadata and setup function for the preprocessor should be defined sf_preproc_info.h.

5.2.2 Detection Engine

Each dynamic detection engine library must define the following functions.

The sample code provided with Snort predefines those functions and defines the following APIs to be used by a dynamic rules library.

5.2.3 Rules

Each dynamic rules library must define the following functions. Examples are defined in the file sfnort_dynamic_detection_lib.c. The metadata and setup function for the preprocessor should be defined in sfsnort_dynamic_detection_lib.h.

The sample code provided with Snort predefines those functions and uses the following data within the dynamic rules library.


next up previous contents
Next: 5.3 Examples Up: 5. Dynamic Modules Previous: 5.1 Data Structures   Contents