mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
'W' for zero window implemented; logarithmic 'T'/'C'/'W' history repetitions
This commit is contained in:
parent
15d74ac081
commit
73349362a3
11 changed files with 231 additions and 35 deletions
|
@ -31,6 +31,8 @@ protected:
|
|||
bool IsReuse(double t, const u_char* pkt) override;
|
||||
unsigned int MemoryAllocation() const override;
|
||||
|
||||
void ChecksumEvent(bool is_orig, uint32 threshold);
|
||||
|
||||
// Returns true if the checksum is valid, false if not
|
||||
static bool ValidateChecksum(const IP_Hdr* ip, const struct udphdr* up,
|
||||
int len);
|
||||
|
@ -44,6 +46,10 @@ private:
|
|||
#define HIST_RESP_DATA_PKT 0x2
|
||||
#define HIST_ORIG_CORRUPT_PKT 0x4
|
||||
#define HIST_RESP_CORRUPT_PKT 0x8
|
||||
|
||||
// For tracking checksum history.
|
||||
uint32 req_chk_cnt, req_chk_thresh;
|
||||
uint32 rep_chk_cnt, rep_chk_thresh;
|
||||
};
|
||||
|
||||
} } // namespace analyzer::*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue