base/protocols/conn/thresholds.bro
-
ConnThreshold
Implements a generic API to throw events when a connection crosses a
fixed threshold of bytes or packets.
Detailed Interface
Types
-
ConnThreshold::Thresholds
-
Events
-
ConnThreshold::bytes_threshold_crossed
-
Generated for a connection that crossed a set byte threshold
C: | the connection |
Threshold: | the threshold that was set |
Is_orig: | True if the threshold was crossed by the originator of the connection |
-
ConnThreshold::packets_threshold_crossed
-
Generated for a connection that crossed a set byte threshold
C: | the connection |
Threshold: | the threshold that was set |
Is_orig: | True if the threshold was crossed by the originator of the connection |
Functions
-
ConnThreshold::delete_bytes_threshold
-
Deletes a byte threshold for connection sizes.
Cid: | The connection id. |
Threshold: | Threshold in bytes to remove. |
Is_orig: | If true, threshold is removed for packets from originator, otherwhise for packets from responder. |
Returns: | T on success, F on failure. |
-
ConnThreshold::delete_packets_threshold
-
Deletes a packet threshold for connection sizes.
Cid: | The connection id. |
Threshold: | Threshold in packets. |
Is_orig: | If true, threshold is removed for packets from originator, otherwise for packets from responder. |
Returns: | T on success, F on failure. |
-
ConnThreshold::set_bytes_threshold
-
Sets a byte threshold for connection sizes, adding it to potentially already existing thresholds.
conn_bytes_threshold_crossed will be raised for each set threshold.
Cid: | The connection id. |
Threshold: | Threshold in bytes. |
Is_orig: | If true, threshold is set for bytes from originator, otherwise for bytes from responder. |
Returns: | T on success, F on failure. |
-
ConnThreshold::set_packets_threshold
-
Sets a packet threshold for connection sizes, adding it to potentially already existing thresholds.
conn_packets_threshold_crossed will be raised for each set threshold.
Cid: | The connection id. |
Threshold: | Threshold in packets. |
Is_orig: | If true, threshold is set for packets from originator, otherwise for packets from responder. |
Returns: | T on success, F on failure. |