mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Rework stats to store handles to the counters
This commit is contained in:
parent
63fd1611ca
commit
ca553fda27
4 changed files with 94 additions and 53 deletions
11
src/Conn.h
11
src/Conn.h
|
@ -132,6 +132,17 @@ public:
|
|||
analyzer::Analyzer* FindAnalyzer(const char* name); // find first in tree.
|
||||
|
||||
TransportProto ConnTransport() const { return proto; }
|
||||
std::string TransportIdentifier() const override
|
||||
{
|
||||
if ( proto == TRANSPORT_TCP )
|
||||
return "tcp";
|
||||
else if ( proto == TRANSPORT_UDP )
|
||||
return "udp";
|
||||
else if ( proto == TRANSPORT_ICMP )
|
||||
return "icmp";
|
||||
else
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
// FIXME: Now this is in Analyzer and should eventually be removed here.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue