mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Merge topic/seth/faf-updates.
This commit is contained in:
parent
7838113dc2
commit
4b81030e3f
9 changed files with 384 additions and 0 deletions
34
src/analyzer/protocol/sip/SIP.h
Normal file
34
src/analyzer/protocol/sip/SIP.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef ANALYZER_PROTOCOL_SIP_SIP_H
|
||||
#define ANALYZER_PROTOCOL_SIP_SIP_H
|
||||
|
||||
#include "events.bif.h"
|
||||
|
||||
#include "analyzer/protocol/udp/UDP.h"
|
||||
#include "sip_pac.h"
|
||||
|
||||
namespace analyzer { namespace sip {
|
||||
|
||||
class SIP_Analyzer : public analyzer::Analyzer {
|
||||
public:
|
||||
SIP_Analyzer(Connection* conn);
|
||||
virtual ~SIP_Analyzer();
|
||||
|
||||
// Overridden from Analyzer
|
||||
|
||||
virtual void Done();
|
||||
virtual void DeliverPacket(int len, const u_char* data, bool orig,
|
||||
int seq, const IP_Hdr* ip, int caplen);
|
||||
|
||||
static analyzer::Analyzer* InstantiateAnalyzer(Connection* conn)
|
||||
{ return new SIP_Analyzer(conn); }
|
||||
|
||||
static bool Available()
|
||||
{ return sip_request; }
|
||||
|
||||
protected:
|
||||
binpac::SIP::SIP_Conn* interp;
|
||||
};
|
||||
|
||||
} } // namespace analyzer::*
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue