"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/perf_monitor/perf_tracker.cc" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

perf_tracker.cc  (snort3-3.1.29.0):perf_tracker.cc  (snort3-3.1.30.0)
skipping to change at line 36 skipping to change at line 36
#include <sys/stat.h> #include <sys/stat.h>
#include <climits> #include <climits>
#include "log/messages.h" #include "log/messages.h"
#include "main/snort_config.h" #include "main/snort_config.h"
#include "utils/util.h" #include "utils/util.h"
#include "utils/util_cstring.h" #include "utils/util_cstring.h"
#ifdef HAVE_FLATBUFFERS
#include "fbs_formatter.h"
#endif
#include "csv_formatter.h" #include "csv_formatter.h"
#include "json_formatter.h" #include "json_formatter.h"
#include "text_formatter.h" #include "text_formatter.h"
using namespace snort; using namespace snort;
using namespace std; using namespace std;
static inline bool check_file_size(FILE* fh, uint64_t max_file_size) static inline bool check_file_size(FILE* fh, uint64_t max_file_size)
{ {
int fd; int fd;
skipping to change at line 72 skipping to change at line 68
PerfTracker::PerfTracker(PerfConfig* config, const char* tracker_name) PerfTracker::PerfTracker(PerfConfig* config, const char* tracker_name)
{ {
max_file_size = config->max_file_size; max_file_size = config->max_file_size;
switch (config->format) switch (config->format)
{ {
case PerfFormat::CSV: formatter = new CSVFormatter(tracker_name); break; case PerfFormat::CSV: formatter = new CSVFormatter(tracker_name); break;
case PerfFormat::TEXT: formatter = new TextFormatter(tracker_name); brea k; case PerfFormat::TEXT: formatter = new TextFormatter(tracker_name); brea k;
case PerfFormat::JSON: formatter = new JSONFormatter(tracker_name); brea k; case PerfFormat::JSON: formatter = new JSONFormatter(tracker_name); brea k;
#ifdef HAVE_FLATBUFFERS
case PerfFormat::FBS: formatter = new FbsFormatter(tracker_name); break;
#endif
#ifdef UNIT_TEST #ifdef UNIT_TEST
case PerfFormat::MOCK: formatter = new MockFormatter(tracker_name); brea k; case PerfFormat::MOCK: formatter = new MockFormatter(tracker_name); brea k;
#endif #endif
default: default:
FatalError("Perfmonitor: Can't initialize output format\n"); FatalError("Perfmonitor: Can't initialize output format\n");
break; break;
} }
if ( config->output == PerfOutput::TO_FILE ) if ( config->output == PerfOutput::TO_FILE )
{ {
 End of changes. 2 change blocks. 
7 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)