mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
SIP: Move to new analyzer format.
This commit is contained in:
parent
d852fe8b52
commit
dde3ce90f8
3 changed files with 25 additions and 14 deletions
|
@ -6,7 +6,7 @@
|
|||
#include "analyzer/protocol/udp/UDP.h"
|
||||
#include "sip_pac.h"
|
||||
|
||||
namespace analyzer { namespace sip {
|
||||
namespace analyzer { namespace SIP {
|
||||
|
||||
class SIP_Analyzer : public analyzer::Analyzer {
|
||||
public:
|
||||
|
@ -17,15 +17,11 @@ public:
|
|||
|
||||
virtual void Done();
|
||||
virtual void DeliverPacket(int len, const u_char* data, bool orig,
|
||||
uint64 seq, const IP_Hdr* ip, int caplen);
|
||||
uint64 seq, const IP_Hdr* ip, int caplen);
|
||||
|
||||
static analyzer::Analyzer* InstantiateAnalyzer(Connection* conn)
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new SIP_Analyzer(conn); }
|
||||
|
||||
static bool Available()
|
||||
{ return sip_request || sip_reply || sip_header ||
|
||||
sip_all_headers || sip_begin_entity || sip_end_entity; }
|
||||
|
||||
protected:
|
||||
binpac::SIP::SIP_Conn* interp;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue