mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Merge branch 'fastpath' of git://git.bro-ids.org/bro into fastpath
This commit is contained in:
commit
acdce70bcc
3 changed files with 16 additions and 16 deletions
|
@ -12,10 +12,10 @@
|
||||||
|
|
||||||
int killed_by_inactivity = 0;
|
int killed_by_inactivity = 0;
|
||||||
|
|
||||||
uint32 tot_ack_events = 0;
|
uint64 tot_ack_events = 0;
|
||||||
uint32 tot_ack_bytes = 0;
|
uint64 tot_ack_bytes = 0;
|
||||||
uint32 tot_gap_events = 0;
|
uint64 tot_gap_events = 0;
|
||||||
uint32 tot_gap_bytes = 0;
|
uint64 tot_gap_bytes = 0;
|
||||||
|
|
||||||
|
|
||||||
class ProfileTimer : public Timer {
|
class ProfileTimer : public Timer {
|
||||||
|
|
|
@ -116,10 +116,10 @@ extern SampleLogger* sample_logger;
|
||||||
extern int killed_by_inactivity;
|
extern int killed_by_inactivity;
|
||||||
|
|
||||||
// Content gap statistics.
|
// Content gap statistics.
|
||||||
extern uint32 tot_ack_events;
|
extern uint64 tot_ack_events;
|
||||||
extern uint32 tot_ack_bytes;
|
extern uint64 tot_ack_bytes;
|
||||||
extern uint32 tot_gap_events;
|
extern uint64 tot_gap_events;
|
||||||
extern uint32 tot_gap_bytes;
|
extern uint64 tot_gap_bytes;
|
||||||
|
|
||||||
|
|
||||||
// A TCPStateStats object tracks the distribution of TCP states for
|
// A TCPStateStats object tracks the distribution of TCP states for
|
||||||
|
|
|
@ -20,10 +20,10 @@ const bool DEBUG_tcp_connection_close = false;
|
||||||
const bool DEBUG_tcp_match_undelivered = false;
|
const bool DEBUG_tcp_match_undelivered = false;
|
||||||
|
|
||||||
static double last_gap_report = 0.0;
|
static double last_gap_report = 0.0;
|
||||||
static uint32 last_ack_events = 0;
|
static uint64 last_ack_events = 0;
|
||||||
static uint32 last_ack_bytes = 0;
|
static uint64 last_ack_bytes = 0;
|
||||||
static uint32 last_gap_events = 0;
|
static uint64 last_gap_events = 0;
|
||||||
static uint32 last_gap_bytes = 0;
|
static uint64 last_gap_bytes = 0;
|
||||||
|
|
||||||
TCP_Reassembler::TCP_Reassembler(Analyzer* arg_dst_analyzer,
|
TCP_Reassembler::TCP_Reassembler(Analyzer* arg_dst_analyzer,
|
||||||
TCP_Analyzer* arg_tcp_analyzer,
|
TCP_Analyzer* arg_tcp_analyzer,
|
||||||
|
@ -513,10 +513,10 @@ void TCP_Reassembler::AckReceived(int seq)
|
||||||
if ( gap_report && gap_report_freq > 0.0 &&
|
if ( gap_report && gap_report_freq > 0.0 &&
|
||||||
dt >= gap_report_freq )
|
dt >= gap_report_freq )
|
||||||
{
|
{
|
||||||
int devents = tot_ack_events - last_ack_events;
|
uint64 devents = tot_ack_events - last_ack_events;
|
||||||
int dbytes = tot_ack_bytes - last_ack_bytes;
|
uint64 dbytes = tot_ack_bytes - last_ack_bytes;
|
||||||
int dgaps = tot_gap_events - last_gap_events;
|
uint64 dgaps = tot_gap_events - last_gap_events;
|
||||||
int dgap_bytes = tot_gap_bytes - last_gap_bytes;
|
uint64 dgap_bytes = tot_gap_bytes - last_gap_bytes;
|
||||||
|
|
||||||
RecordVal* r = new RecordVal(gap_info);
|
RecordVal* r = new RecordVal(gap_info);
|
||||||
r->Assign(0, new Val(devents, TYPE_COUNT));
|
r->Assign(0, new Val(devents, TYPE_COUNT));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue