Remove deprecated protocol_confirmation/violation events and methods

This commit is contained in:
Tim Wojtulewicz 2022-06-15 15:00:49 -07:00
parent 392c2f3810
commit 644ed5d314
7 changed files with 5 additions and 96 deletions

View file

@ -53,7 +53,7 @@ void FOO_Analyzer::DeliverStream(int len, const u_char* data, bool orig)
catch ( const binpac::Exception& e )
{
printf("Exception: %s\n", e.c_msg());
ProtocolViolation(zeek::util::fmt("Binpac exception: %s", e.c_msg()));
AnalyzerViolation(zeek::util::fmt("Binpac exception: %s", e.c_msg()));
}
}

View file

@ -41,7 +41,7 @@ refine flow FOO_Flow += {
function proc_foo_message(msg: FOO_PDU): bool
%{
// printf("FOO %d %d\n", msg->hdr()->len(), msg->hdr_len());
connection()->bro_analyzer()->ProtocolConfirmation();
connection()->bro_analyzer()->AnalyzerConfirmation();
zeek::BifEvent::Foo::enqueue_foo_message(
connection()->bro_analyzer(),
connection()->bro_analyzer()->Conn(),

View file

@ -3,7 +3,7 @@
#include "foo_pac.h"
#include "events.bif.h"
#include <zeek/analyzer/protocol/tcp/TCP_Reassembler.h>
#include "zeek/analyzer/protocol/tcp/TCP_Reassembler.h"
using namespace btest::plugin::Demo_Foo;
@ -45,7 +45,7 @@ void Foo::DeliverStream(int len, const u_char* data, bool orig)
}
catch ( const binpac::Exception& e )
{
ProtocolViolation(zeek::util::fmt("Binpac exception: %s", e.c_msg()));
AnalyzerViolation(zeek::util::fmt("Binpac exception: %s", e.c_msg()));
}
}