mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Merge branch 'topic/amazingpp/irc-fuid-missing' of github.com:AmazingPP/zeek
* 'topic/amazingpp/irc-fuid-missing' of github.com:AmazingPP/zeek: Add irc_dcc_send_ack event and fix missing fields I've moved IRC_Data back into the zeek::analyzer::file namespace, but we did move the declaration from protocol/file/File.h to protocol/irc/IRC.h. But, if someone actually customized IRC_Data and didn't include protocol/irc/IRC.h for other reasons, I'll be surprised (and also just suggest to update the include).
This commit is contained in:
commit
1b69b4d26f
17 changed files with 209 additions and 107 deletions
|
@ -2,10 +2,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "zeek/analyzer/protocol/file/File.h"
|
||||
#include "zeek/analyzer/protocol/tcp/ContentLine.h"
|
||||
#include "zeek/analyzer/protocol/tcp/TCP.h"
|
||||
|
||||
namespace zeek::analyzer::irc
|
||||
namespace zeek::analyzer
|
||||
{
|
||||
|
||||
namespace irc
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -79,4 +83,22 @@ private:
|
|||
bool starttls; // if true, connection has been upgraded to tls
|
||||
};
|
||||
|
||||
} // namespace zeek::analyzer::irc
|
||||
} // namespace irc
|
||||
|
||||
namespace file
|
||||
{
|
||||
|
||||
class IRC_Data : public analyzer::file::File_Analyzer
|
||||
{
|
||||
public:
|
||||
explicit IRC_Data(Connection* conn) : analyzer::file::File_Analyzer("IRC_Data", conn) { }
|
||||
|
||||
void DeliverStream(int len, const u_char* data, bool orig) override;
|
||||
|
||||
void Undelivered(uint64_t seq, int len, bool orig) override;
|
||||
|
||||
static Analyzer* Instantiate(Connection* conn) { return new IRC_Data(conn); }
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace zeek::analyzer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue