mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00

This largely copies over Spicy's `.clang-format` configuration file. The one place where we deviate is header include order since Zeek depends on headers being included in a certain order.
34 lines
873 B
C++
34 lines
873 B
C++
#ifndef ANALYZER_PROTOCOL_FOO_FOO_H
|
|
#define ANALYZER_PROTOCOL_FOO_FOO_H
|
|
|
|
#include "zeek/analyzer/protocol/tcp/TCP.h"
|
|
|
|
#include "foo.bif.h"
|
|
#include "foo_pac.h"
|
|
|
|
namespace btest::analyzer::FOO {
|
|
|
|
class FOO_Analyzer : public zeek::analyzer::tcp::TCP_ApplicationAnalyzer {
|
|
public:
|
|
FOO_Analyzer(zeek::Connection* conn);
|
|
virtual ~FOO_Analyzer();
|
|
|
|
// Overridden from Analyzer.
|
|
virtual void Done();
|
|
|
|
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
|
virtual void Undelivered(uint64_t seq, int len, bool orig);
|
|
|
|
// Overridden from tcp::TCP_ApplicationAnalyzer.
|
|
virtual void EndpointEOF(bool is_orig);
|
|
|
|
static zeek::analyzer::Analyzer* InstantiateAnalyzer(zeek::Connection* conn) { return new FOO_Analyzer(conn); }
|
|
|
|
protected:
|
|
binpac::FOO::FOO_Conn* interp;
|
|
bool had_gap;
|
|
};
|
|
|
|
} // namespace btest::analyzer::FOO
|
|
|
|
#endif
|