mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
29 lines
636 B
C++
29 lines
636 B
C++
#ifndef AYIYA_h
|
|
#define AYIYA_h
|
|
|
|
#include "ayiya_pac.h"
|
|
|
|
class AYIYA_Analyzer : public Analyzer {
|
|
public:
|
|
AYIYA_Analyzer(Connection* conn);
|
|
virtual ~AYIYA_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* InstantiateAnalyzer(Connection* conn)
|
|
{ return new AYIYA_Analyzer(conn); }
|
|
|
|
static bool Available()
|
|
{ return BifConst::Tunnel::enable_ayiya &&
|
|
BifConst::Tunnel::max_depth > 0; }
|
|
|
|
protected:
|
|
friend class AnalyzerTimer;
|
|
void ExpireTimer(double t);
|
|
|
|
binpac::AYIYA::AYIYA_Conn* interp;
|
|
};
|
|
|
|
#endif
|