base/frameworks/netcontrol/plugins/debug.zeek

NetControl

Debugging plugin for the NetControl framework, providing insight into executed operations.

Namespace

NetControl

Imports

base/frameworks/netcontrol/main.zeek, base/frameworks/netcontrol/plugin.zeek

Summary

Functions

NetControl::create_debug: function

Instantiates a debug plugin for the NetControl framework.

NetControl::create_debug_error: function

Instantiates a debug plugin for the NetControl framework.

NetControl::create_debug_exists: function

Instantiates a debug plugin for the NetControl framework.

Detailed Interface

Functions

NetControl::create_debug
Type

function (do_something: bool, name: string &default = "" &optional) : NetControl::PluginState

Instantiates a debug plugin for the NetControl framework. The debug plugin simply logs the operations it receives.

Parameters
  • do_something – If true, the plugin will claim it supports all operations; if false, it will indicate it doesn’t support any.

  • name – Optional name that for the plugin.

NetControl::create_debug_error
Type

function (name: string) : NetControl::PluginState

Instantiates a debug plugin for the NetControl framework. This variation of the plugin will return “error” to any rule operations.

Parameters

name – Name of this plugin.

NetControl::create_debug_exists
Type

function (name: string) : NetControl::PluginState

Instantiates a debug plugin for the NetControl framework. This variation of the plugin will return “exists” to any rule operations.

Parameters

name – Name of this plugin.