NetControlThis file defines the plugin interface for NetControl.
| Namespace: | NetControl |
|---|---|
| Imports: | base/frameworks/netcontrol/types.bro |
| Source File: | /scripts/base/frameworks/netcontrol/plugin.bro |
NetControl::Plugin: record |
Definition of a plugin. |
NetControl::PluginState: record |
This record keeps the per instance state of a plugin. |
NetControl::PluginState: record |
Table for a plugin to store instance-specific configuration information. |
NetControl::Plugin| Type: |
|
|---|
Definition of a plugin.
Generally a plugin needs to implement only what it can support. By returning failure, it indicates that it can’t support something and the framework will then try another plugin, if available; or inform the that the operation failed. If a function isn’t implemented by a plugin, that’s considered an implicit failure to support the operation.
If plugin accepts a rule operation, it must generate one of the reporting
events rule_{added,remove,error} to signal if it indeed worked out;
this is separate from accepting the operation because often a plugin
will only know later (i.e., asynchronously) if that was an error for
something it thought it could handle.
NetControl::PluginState| Type: |
|
|---|
This record keeps the per instance state of a plugin.
Individual plugins commonly extend this record to suit their needs.