mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Plugins: Clean up explicit uses of namespaces in places where they're not necessary.
This commit covers all of the plugin classes.
This commit is contained in:
parent
fe0c22c789
commit
70c2397f69
169 changed files with 3139 additions and 3141 deletions
|
@ -6,13 +6,13 @@
|
|||
|
||||
namespace zeek::analyzer::tcp {
|
||||
|
||||
ContentLine_Analyzer::ContentLine_Analyzer(zeek::Connection* conn, bool orig, int max_line_length)
|
||||
ContentLine_Analyzer::ContentLine_Analyzer(Connection* conn, bool orig, int max_line_length)
|
||||
: TCP_SupportAnalyzer("CONTENTLINE", conn, orig), max_line_length(max_line_length)
|
||||
{
|
||||
InitState();
|
||||
}
|
||||
|
||||
ContentLine_Analyzer::ContentLine_Analyzer(const char* name, zeek::Connection* conn, bool orig, int max_line_length)
|
||||
ContentLine_Analyzer::ContentLine_Analyzer(const char* name, Connection* conn, bool orig, int max_line_length)
|
||||
: TCP_SupportAnalyzer(name, conn, orig), max_line_length(max_line_length)
|
||||
{
|
||||
InitState();
|
||||
|
@ -111,7 +111,7 @@ void ContentLine_Analyzer::SetPlainDelivery(int64_t length)
|
|||
{
|
||||
if ( length < 0 )
|
||||
{
|
||||
zeek::reporter->AnalyzerError(
|
||||
reporter->AnalyzerError(
|
||||
this, "negative length for plain delivery");
|
||||
return;
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data)
|
|||
|
||||
else
|
||||
{
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(zeek::SINGULAR_LF) )
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(SINGULAR_LF) )
|
||||
Conn()->Weird("line_terminated_with_single_LF");
|
||||
buf[offset++] = c;
|
||||
}
|
||||
|
@ -280,7 +280,7 @@ int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data)
|
|||
}
|
||||
|
||||
if ( last_char == '\r' )
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(zeek::SINGULAR_CR) )
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(SINGULAR_CR) )
|
||||
Conn()->Weird("line_terminated_with_single_CR");
|
||||
|
||||
last_char = c;
|
||||
|
@ -310,7 +310,7 @@ void ContentLine_Analyzer::CheckNUL()
|
|||
; // Ignore it.
|
||||
else
|
||||
{
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(zeek::NUL_IN_LINE) )
|
||||
if ( ! suppress_weirds && Conn()->FlagEvent(NUL_IN_LINE) )
|
||||
Conn()->Weird("NUL_in_line");
|
||||
flag_NULs = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue