mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Working on TODOs.
- Introducing analyzer::<protocol> namespaces. - Moving protocol-specific events out of events.bif into analyzer/protocol/<protocol>/events.bif - Moving ARP over (even though it's not an actual analyzer). - Moving NetFlow over (even though it's not an actual analyzer). - Moving MIME over (even though it's not an actual analyzer).
This commit is contained in:
parent
dfc4cb0881
commit
5dc630f722
210 changed files with 7080 additions and 6608 deletions
|
@ -14,11 +14,14 @@
|
|||
// - TCP_Analyzer is the analyzer for the TCP protocol itself.
|
||||
// - TCP_ApplicationAnalyzer is an abstract base class for analyzers for a
|
||||
// protocol running on top of TCP.
|
||||
//
|
||||
namespace analyzer { namespace pia { class PIA_TCP; } };
|
||||
|
||||
class PIA_TCP;
|
||||
namespace analyzer { namespace tcp {
|
||||
|
||||
class TCP_Endpoint;
|
||||
class TCP_ApplicationAnalyzer;
|
||||
class TCP_Reassembler;
|
||||
class TCP_Endpoint;
|
||||
|
||||
class TCP_Flags {
|
||||
public:
|
||||
|
@ -94,7 +97,7 @@ public:
|
|||
protected:
|
||||
friend class TCP_ApplicationAnalyzer;
|
||||
friend class TCP_Reassembler;
|
||||
friend class PIA_TCP;
|
||||
friend class analyzer::pia::PIA_TCP;
|
||||
|
||||
// Analyzer interface.
|
||||
virtual void Init();
|
||||
|
@ -223,7 +226,7 @@ protected:
|
|||
void ConnectionReset();
|
||||
void PacketWithRST();
|
||||
|
||||
void SetReassembler(TCP_Reassembler* rorig, TCP_Reassembler* rresp);
|
||||
void SetReassembler(tcp::TCP_Reassembler* rorig, tcp::TCP_Reassembler* rresp);
|
||||
|
||||
Val* BuildSYNPacketVal(int is_orig,
|
||||
const IP_Hdr* ip, const struct tcphdr* tcp);
|
||||
|
@ -356,7 +359,7 @@ protected:
|
|||
int endian_type;
|
||||
};
|
||||
|
||||
class TCPStats_Analyzer : public TCP_ApplicationAnalyzer {
|
||||
class TCPStats_Analyzer : public tcp::TCP_ApplicationAnalyzer {
|
||||
public:
|
||||
TCPStats_Analyzer(Connection* c);
|
||||
~TCPStats_Analyzer();
|
||||
|
@ -375,4 +378,6 @@ protected:
|
|||
TCPStats_Endpoint* resp_stats;
|
||||
};
|
||||
|
||||
} } // namespace analyzer::*
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue