mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Merge remote-tracking branch 'origin/topic/vern/expose-TCP-statics'
* origin/topic/vern/expose-TCP-statics: expose some TCP analyzer utility functions for use by derived classes
This commit is contained in:
commit
4c6b35970d
4 changed files with 16 additions and 5 deletions
|
@ -174,6 +174,13 @@ protected:
|
|||
const u_char* option, TCP_Analyzer* analyzer,
|
||||
bool is_orig, void* cookie);
|
||||
|
||||
// A couple utility functions that may also be useful to derived analyzers.
|
||||
static uint64 get_relative_seq(const TCP_Endpoint* endpoint,
|
||||
uint32 cur_base, uint32 last,
|
||||
uint32 wraps, bool* underflow = 0);
|
||||
|
||||
static int get_segment_len(int payload_len, TCP_Flags flags);
|
||||
|
||||
private:
|
||||
TCP_Endpoint* orig;
|
||||
TCP_Endpoint* resp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue