mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Rename IPBasedTransportAnalyzer to SessionAdapter
This also also combines the old TransportLayerAnalyzer class into SessionAdapter, and removes the old class. This requires naming changes in a few places but no functionality changes.
This commit is contained in:
parent
c56fb3e8e4
commit
b22ce6848f
24 changed files with 340 additions and 329 deletions
|
@ -25,12 +25,12 @@ namespace zeek::detail {
|
|||
bool RuleConditionTCPState::DoMatch(Rule* rule, RuleEndpointState* state,
|
||||
const u_char* data, int len)
|
||||
{
|
||||
analyzer::Analyzer* root = state->GetAnalyzer()->Conn()->GetRootAnalyzer();
|
||||
auto* adapter = state->GetAnalyzer()->Conn()->GetSessionAdapter();
|
||||
|
||||
if ( ! root || ! root->IsAnalyzer("TCP") )
|
||||
if ( ! adapter || ! adapter->IsAnalyzer("TCP") )
|
||||
return false;
|
||||
|
||||
auto* ta = static_cast<analyzer::tcp::TCP_Analyzer*>(root);
|
||||
auto* ta = static_cast<analyzer::tcp::TCP_Analyzer*>(adapter);
|
||||
|
||||
if ( tcpstates & RULE_STATE_STATELESS )
|
||||
return true;
|
||||
|
@ -57,9 +57,9 @@ void RuleConditionTCPState::PrintDebug()
|
|||
bool RuleConditionUDPState::DoMatch(Rule* rule, RuleEndpointState* state,
|
||||
const u_char* data, int len)
|
||||
{
|
||||
analyzer::Analyzer* root = state->GetAnalyzer()->Conn()->GetRootAnalyzer();
|
||||
auto* adapter = state->GetAnalyzer()->Conn()->GetSessionAdapter();
|
||||
|
||||
if ( ! root || ! root->IsAnalyzer("UDP") )
|
||||
if ( ! adapter || ! adapter->IsAnalyzer("UDP") )
|
||||
return false;
|
||||
|
||||
if ( states & RULE_STATE_STATELESS )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue