#include "framework/data_bus.h"
#include "main/snort_config.h"
#include "managers/inspector_manager.h"
+#include "packet_tracer/packet_tracer.h"
#include "protocols/packet.h"
#include "utils/util.h"
#include "utils/util_utf.h"
if ((!is_file_type_enabled()) and (!is_file_signature_enabled()))
{
update_file_size(data_size, position);
+ if (PacketTracer::is_active())
+ PacketTracer::log("File: Type and Sig not enabled\n");
return false;
}
update_file_size(data_size, position);
processing_complete = true;
stop_file_capture();
+ if (PacketTracer::is_active())
+ PacketTracer::log("File: Type unknown\n");
return false;
}
if (get_file_type() != SNORT_FILE_TYPE_CONTINUE)
{
+ if (PacketTracer::is_active())
+ PacketTracer::log("File: Type-%s found\n",
+ file_type_name(get_file_type()).c_str());
config_file_type(false);
file_stats->files_processed[get_file_type()][get_file_direction()]++;
//Check file type based on file policy
}
else
{
+ if (PacketTracer::is_active())
+ PacketTracer::log("File: Sig depth exceeded\n");
return false;
}
}
if ( !get_rule_count() || (empty_policy->policy_id == p->flow->ips_policy_id) )
{
if ( PacketTracer::is_active() )
- PacketTracer::log("Whitelisting Flow: FTP sig depth exceeded\n");
+ PacketTracer::log("Whitelisting Flow: FTP data\n");
p->flow->set_ignore_direction(SSN_DIR_BOTH);
}
}