base/frameworks/netcontrol/plugins/acld.bro
-
NetControl
Acld plugin for the netcontrol framework.
Detailed Interface
Types
-
NetControl::AclRule
-
-
NetControl::AcldConfig
Type: | record
- acld_topic:
string
The acld topic to send events to.
- acld_host:
addr
Broker host to connect to.
- acld_port:
port
Broker port to connect to.
- monitor:
bool &default = F &optional
Do we accept rules for the monitor path? Default false.
- forward:
bool &default = T &optional
Do we accept rules for the forward path? Default true.
- check_pred:
function (p: NetControl::PluginState , r: NetControl::Rule ) : bool &optional
Predicate that is called on rule insertion or removal.
p: | Current plugin state. |
r: | The rule to be inserted or removed. |
returns: | T if the rule can be handled by the current backend, F otherwise. |
|
Events
-
NetControl::acld_add_rule
-
Events that are sent from us to Broker.
-
NetControl::acld_remove_rule
-
-
NetControl::acld_rule_added
-
Events that are sent from Broker to us.
-
NetControl::acld_rule_error
-
-
NetControl::acld_rule_exists
-
-
NetControl::acld_rule_removed
-
Hooks
-
NetControl::acld_rule_policy
-
Hook that is called after a rule is converted to an acld rule.
The hook may modify the rule before it is sent to acld.
Setting the acld command to F will cause the rule to be rejected
by the plugin.
P: | Current plugin state. |
R: | The rule to be inserted or removed. |
Ar: | The acld rule to be inserted or removed. |
Functions
-
NetControl::create_acld
-
Instantiates the acld plugin.