mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Changed netstats (packet loss) handling to script-land.
- Removed the net_stats_update event. - Created a net_stats function for building and retrieving the current network statistics. - Removed the internal timer for firing the net_stats_update event along with the global heartbeat_interval variable. - Updated the netstats script to use the new BiF. - Updated the stats script to use the new BiF.
This commit is contained in:
parent
871eff9f90
commit
c60015af22
10 changed files with 75 additions and 174 deletions
|
@ -19,10 +19,7 @@ RecordType* signature_state;
|
|||
EnumType* transport_proto;
|
||||
TableType* string_set;
|
||||
|
||||
RecordType* net_stats;
|
||||
|
||||
int watchdog_interval;
|
||||
double heartbeat_interval;
|
||||
|
||||
int max_timer_expires;
|
||||
int max_remote_events_processed;
|
||||
|
@ -407,10 +404,7 @@ void init_net_var()
|
|||
ntp_session_timeout = opt_internal_double("ntp_session_timeout");
|
||||
rpc_timeout = opt_internal_double("rpc_timeout");
|
||||
|
||||
net_stats = internal_type("net_stats")->AsRecordType();
|
||||
|
||||
watchdog_interval = int(opt_internal_double("watchdog_interval"));
|
||||
heartbeat_interval = opt_internal_double("heartbeat_interval");
|
||||
|
||||
max_timer_expires = opt_internal_int("max_timer_expires");
|
||||
max_remote_events_processed =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue