mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Remove deprecated protocol_confirmation/violation events and methods
This commit is contained in:
parent
392c2f3810
commit
644ed5d314
7 changed files with 5 additions and 96 deletions
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue