mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This enables locating the headers within the install-tree using the dirs provided by `zeek-config --include_dir`. To enable locating these headers within the build-tree, this change also creates a 'build/src/include/zeek -> ..' symlink.
28 lines
680 B
C++
28 lines
680 B
C++
#pragma once
|
|
|
|
#include "zeek/analyzer/protocol/udp/UDP.h"
|
|
|
|
#include "zeek/analyzer/protocol/sip/events.bif.h"
|
|
#include "zeek/analyzer/protocol/sip/sip_pac.h"
|
|
|
|
namespace zeek::analyzer::sip{
|
|
|
|
class SIP_Analyzer final : public analyzer::Analyzer {
|
|
public:
|
|
explicit SIP_Analyzer(Connection* conn);
|
|
~SIP_Analyzer() override;
|
|
|
|
// Overridden from Analyzer
|
|
|
|
void Done() override;
|
|
void DeliverPacket(int len, const u_char* data, bool orig,
|
|
uint64_t seq, const IP_Hdr* ip, int caplen) override;
|
|
|
|
static analyzer::Analyzer* Instantiate(Connection* conn)
|
|
{ return new SIP_Analyzer(conn); }
|
|
|
|
protected:
|
|
binpac::SIP::SIP_Conn* interp;
|
|
};
|
|
|
|
} // namespace zeek::analyzer::sip
|