fixup! Resolve conflicts for cherry-pick to 7.0

ZAM fixes maybe needed?
This commit is contained in:
Arne Welzel 2025-07-04 15:05:43 +02:00
parent 64aa5e3025
commit 097ee7cbfc
2 changed files with 23 additions and 16 deletions

View file

@ -2515,11 +2515,12 @@ eval auto teredo = zeek::packet_mgr->GetAnalyzer("Teredo");
if ( teredo )
{
auto r = zeek::conn_key_mgr->GetFactory().ConnKeyFromVal(*frame[z.v1].record_val);
if ( ! r.has_value() )
return zeek::val_mgr->False();
if ( r.has_value() )
{
auto sk = r.value()->SessionKey();
static_cast<zeek::packet_analysis::teredo::TeredoAnalyzer*>(teredo.get())->RemoveConnection(sk);
}
}
internal-op Remove-Teredo
side-effects OP_REMOVE_TEREDO_V OP_V
@ -2528,11 +2529,12 @@ eval auto teredo = zeek::packet_mgr->GetAnalyzer("Teredo");
if ( teredo )
{
auto r = zeek::conn_key_mgr->GetFactory().ConnKeyFromVal(*frame[z.v2].record_val);
if ( ! r.has_value() )
return zeek::val_mgr->False();
if ( r.has_value() )
{
auto sk = r.value()->SessionKey();
static_cast<zeek::packet_analysis::teredo::TeredoAnalyzer*>(teredo.get())->RemoveConnection(sk);
}
}
frame[z.v1].int_val = 1;
internal-op Remove-GTPv1
@ -2542,11 +2544,12 @@ eval auto gtpv1 = zeek::packet_mgr->GetAnalyzer("GTPv1");
if ( gtpv1 )
{
auto r = zeek::conn_key_mgr->GetFactory().ConnKeyFromVal(*frame[z.v1].record_val);
if ( ! r.has_value() )
return zeek::val_mgr->False();
if ( r.has_value() )
{
auto sk = r.value()->SessionKey();
static_cast<zeek::packet_analysis::gtpv1::GTPv1_Analyzer*>(gtpv1.get())->RemoveConnection(sk);
}
}
internal-op Remove-GTPv1
side-effects OP_REMOVE_GTPV1_V OP_V
@ -2555,11 +2558,12 @@ eval auto gtpv1 = zeek::packet_mgr->GetAnalyzer("GTPv1");
if ( gtpv1 )
{
auto r = zeek::conn_key_mgr->GetFactory().ConnKeyFromVal(*frame[z.v2].record_val);
if ( ! r.has_value() )
return zeek::val_mgr->False();
if ( r.has_value() )
{
auto sk = r.value()->SessionKey();
static_cast<zeek::packet_analysis::gtpv1::GTPv1_Analyzer*>(gtpv1.get())->RemoveConnection(sk);
}
}
frame[z.v1].int_val = 1;
internal-op Set-File-Handle

View file

@ -0,0 +1,3 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
analyzer_confirmation, 1692198386.837988, CHhAvVGS1DHFjwGM9, AllAnalyzers::ANALYZER_ANALYZER_QUIC
analyzer_confirmation, 1692198386.837988, CHhAvVGS1DHFjwGM9, AllAnalyzers::ANALYZER_ANALYZER_SSL