Skip to main content

Module engine

Module engine 

Source
Expand description

Rule Engine Module

Executes user-defined rules against network traffic flows.

  • model: Core data structures (Rule, Action, Filter) - defined in parent module.
  • compiler: Compiles high-level Rules into optimized CompiledRule structures.
  • matcher: Matches CompiledFilter against Flow data.
  • executor: Main execution loop, iterates rules, checks stages, and triggers actions.
  • actions: Implementation of specific actions (e.g., Modify Header, Drop, Mock).
  • validator: Validates if filters/actions are appropriate for the current execution stage.

Modules§

actions
compiled
compiler
executor
matcher
state
validator

Structs§

ExecutionContext
RuleEngine