mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
SIP: Fix up DPD and the TCP analyzer a bit.
This commit is contained in:
parent
1ea5463037
commit
e2134d3cb9
9 changed files with 175 additions and 9 deletions
37
src/analyzer/protocol/sip/SIP_TCP.h
Normal file
37
src/analyzer/protocol/sip/SIP_TCP.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#ifndef ANALYZER_PROTOCOL_SIP_SIP_TCP_H
|
||||
#define ANALYZER_PROTOCOL_SIP_SIP_TCP_H
|
||||
|
||||
#include "analyzer/protocol/tcp/TCP.h"
|
||||
|
||||
#include "sip_TCP_pac.h"
|
||||
|
||||
namespace analyzer { namespace sip_tcp {
|
||||
|
||||
class SIP_Analyzer : public tcp::TCP_ApplicationAnalyzer {
|
||||
|
||||
public:
|
||||
|
||||
SIP_Analyzer(Connection* conn);
|
||||
virtual ~SIP_Analyzer();
|
||||
|
||||
virtual void Done();
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
virtual void Undelivered(uint64 seq, int len, bool orig);
|
||||
|
||||
// Overriden from tcp::TCP_ApplicationAnalyzer.
|
||||
virtual void EndpointEOF(bool is_orig);
|
||||
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new SIP_Analyzer(conn); }
|
||||
|
||||
protected:
|
||||
|
||||
binpac::SIP_TCP::SIP_Conn* interp;
|
||||
bool had_gap;
|
||||
};
|
||||
|
||||
} } // namespace analyzer::*
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue