base/frameworks/netcontrol/drop.zeek
- NetControl
Implementation of the drop functionality for NetControl.
- Namespace:
NetControl
- Imports:
Summary
Types
Redefinitions
Events
Event that can be handled to access the |
Hooks
Hook that allows the modification of rules passed to drop_* before they are passed on. |
|
Functions
Stops all packets involving an IP address from being forwarded. |
|
Stops all packets involving a connection address from being forwarded. |
Detailed Interface
Types
- NetControl::DropInfo
- Type:
- Fields:
Events
- NetControl::log_netcontrol_drop
- Type:
event(rec:NetControl::DropInfo)
Event that can be handled to access the
NetControl::ShuntInforecord as it is sent on to the logging framework.
Hooks
- NetControl::drop_rule_policy
- Type:
hook(r:NetControl::Rule) :bool
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.
- Parameters:
r – The rule to be added.
Functions
- NetControl::drop_address
-
Stops all packets involving an IP address from being forwarded.
- Parameters:
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.
- Parameters:
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.