base/frameworks/netcontrol/drop.bro
-
NetControl
Implementation of the drop functionality for NetControl.
Detailed Interface
Types
-
NetControl::DropInfo
-
Events
-
NetControl::log_netcontrol_drop
-
Event that can be handled to access the NetControl::ShuntInfo
record as it is sent on to the logging framework.
Hooks
-
NetControl::drop_rule_policy
-
Hook that allows the modification of rules passed to drop_* before they
are passed on. If one of the hooks uses break, the rule is ignored.
Functions
-
NetControl::drop_address
-
Stops all packets involving an IP address from being forwarded.
A: | The address to be dropped. |
T: | How long to drop it, with 0 being indefinitely. |
Location: | An optional string describing where the drop was triggered. |
Returns: | The id of the inserted rule on success and zero on failure. |
-
NetControl::drop_connection
-
Stops all packets involving a connection address from being forwarded.
C: | The connection to be dropped. |
T: | How long to drop it, with 0 being indefinitely. |
Location: | An optional string describing where the drop was triggered. |
Returns: | The id of the inserted rule on success and zero on failure. |