SIP: Move to new analyzer format.

This commit is contained in:
Vlad Grigorescu 2015-02-06 19:57:48 -05:00
parent d852fe8b52
commit dde3ce90f8
3 changed files with 25 additions and 14 deletions

View file

@ -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;
};