Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

spp_perfmonitor.c File Reference

#include <stdlib.h>
#include <ctype.h>
#include "plugbase.h"
#include "mstring.h"
#include "util.h"
#include "debug.h"
#include "parser.h"
#include "snort.h"
#include "perf.h"

Go to the source code of this file.

Functions

static void PerfMonitorInit (u_char *args)
static void ParsePerfMonitorArgs (char *args)
static void ProcessPerfMonitor (Packet *p, void *)
void PerfMonitorCleanExit (int, void *)
void SetupPerfMonitor ()
void SetPerfmonitorFile (char *s)

Variables

static char perf_file [1025] = {""}


Function Documentation

static void ParsePerfMonitorArgs char *  args  )  [static]
 

Definition at line 118 of file spp_perfmonitor.c.

References AddFuncToCleanExitList(), CheckSampleInterval(), FatalError(), file_line, file_name, _SFPERF::iPerfFlags, _progvars::log_dir, LogMessage(), mSplit(), mSplitFree(), NULL, perf_file, PerfMonitorCleanExit(), pv, sfInitPerformanceStatistics(), sfPerf, SFPERF_BASE, SFPERF_BASE_MAX, SFPERF_CONSOLE, SFPERF_EVENT, SFPERF_FILE, SFPERF_FLOW, SFPERF_PKTCNT, SFPERF_SUMMARY, sfSetPerformanceAccounting(), sfSetPerformanceSampleTime(), sfSetPerformanceStatistics(), sfSetPerformanceStatisticsEx(), snprintf, and strtol().

Referenced by PerfMonitorInit().

void PerfMonitorCleanExit int  signal,
void *  foo
 

CleanExit func required by preprocessors

Definition at line 421 of file spp_perfmonitor.c.

References sfPerf, and sfProcessPerfStats().

Referenced by ParsePerfMonitorArgs().

static void PerfMonitorInit u_char *  args  )  [static]
 

Definition at line 79 of file spp_perfmonitor.c.

References AddFuncToPreprocList(), DEBUG_PLUGIN, DEBUG_WRAP, ParsePerfMonitorArgs(), and ProcessPerfMonitor().

Referenced by SetupPerfMonitor().

static void ProcessPerfMonitor Packet p,
void * 
[static]
 

Definition at line 353 of file spp_perfmonitor.c.

References pcap_pkthdr::caplen, _Packet::dp, _Packet::icmph, _SFPERF::iPerfFlags, _SFBASE::iSynAcks, _SFBASE::iSyns, _Packet::packet_flags, _Packet::pkt, PKT_REBUILT_STREAM, _Packet::pkth, PP_PERFMONITOR, _Packet::preprocessors, pv, _progvars::rotate_perf_file, _SFPERF::sample_interval, _SFPERF::sfBase, sfPerf, SFPERF_FLOW, sfPerformanceStats(), sfRotatePerformanceStatisticsFile(), _Packet::sp, _Packet::tcph, TH_ACK, _TCPHdr::th_flags, TH_SYN, _ICMPHdr::type, _Packet::udph, UpdateICMPFlowStatsEx(), UpdateTCPFlowStatsEx(), and UpdateUDPFlowStatsEx().

Referenced by PerfMonitorInit().

void SetPerfmonitorFile char *  s  ) 
 

Definition at line 94 of file spp_perfmonitor.c.

References perf_file.

Referenced by ParseCmdLine().

void SetupPerfMonitor  ) 
 

Definition at line 59 of file spp_perfmonitor.c.

References DEBUG_PLUGIN, DEBUG_WRAP, PerfMonitorInit(), and RegisterPreprocessor().

Referenced by InitPreprocessors().


Variable Documentation

char perf_file[1025] = {""} [static]
 

Definition at line 93 of file spp_perfmonitor.c.

Referenced by ParsePerfMonitorArgs(), and SetPerfmonitorFile().


Generated on Sun May 14 14:51:25 2006 by  doxygen 1.4.2