mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Update plugin btests for namespace changes
This commit is contained in:
parent
70c2397f69
commit
874e170341
43 changed files with 420 additions and 317 deletions
|
@ -6,9 +6,10 @@
|
|||
|
||||
#include "foo.bif.h"
|
||||
|
||||
using namespace analyzer::FOO;
|
||||
using namespace btest::analyzer::FOO;
|
||||
using namespace zeek::analyzer;
|
||||
|
||||
FOO_Analyzer::FOO_Analyzer(Connection* c) : tcp::TCP_ApplicationAnalyzer("FOO", c)
|
||||
FOO_Analyzer::FOO_Analyzer(zeek::Connection* c) : tcp::TCP_ApplicationAnalyzer("FOO", c)
|
||||
{
|
||||
interp = new binpac::FOO::FOO_Conn(this);
|
||||
had_gap = false;
|
||||
|
@ -53,7 +54,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(fmt("Binpac exception: %s", e.c_msg()));
|
||||
ProtocolViolation(zeek::util::fmt("Binpac exception: %s", e.c_msg()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue