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

perf-flow.c File Reference

#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "snort.h"
#include "util.h"

Go to the source code of this file.

Functions

int DisplayFlowStats (SFFLOW_STATS *sfFlowStats)
SFFLOWsfGetFlowPtr ()
int InitFlowStats (SFFLOW *sfFlow)
int UpdateTCPFlowStats (SFFLOW *sfFlow, int sport, int dport, int len)
int UpdateTCPFlowStatsEx (int sport, int dport, int len)
int UpdateUDPFlowStats (SFFLOW *sfFlow, int sport, int dport, int len)
int UpdateUDPFlowStatsEx (int sport, int dport, int len)
int UpdateICMPFlowStats (SFFLOW *sfFlow, int type, int len)
int UpdateICMPFlowStatsEx (int type, int len)
int UpdateFlowStats (SFFLOW *sfFlow, unsigned char *pucPacket, int len, int iRebuiltPkt)
int ProcessFlowStats (SFFLOW *sfFlow)


Function Documentation

int DisplayFlowStats SFFLOW_STATS sfFlowStats  ) 
 

Definition at line 392 of file perf-flow.c.

References _portflow::dport_rate, _sfflow_stats::flowICMP, LogMessage(), _sfflow_stats::pktLenPercent, _sfflow_stats::portflowHighTCP, _sfflow_stats::portflowHighUDP, _sfflow_stats::portflowTCP, _sfflow_stats::portflowUDP, SF_MAX_PKT_LEN, SF_MAX_PORT, _portflow::sport_rate, _icmpflow::totperc, _portflow::totperc, _sfflow_stats::trafficICMP, _sfflow_stats::trafficOTHER, _sfflow_stats::trafficTCP, and _sfflow_stats::trafficUDP.

Referenced by ProcessFlowStats().

int InitFlowStats SFFLOW sfFlow  ) 
 

Definition at line 68 of file perf-flow.c.

References _sfflow::byteTotal, FatalError(), memset, _sfflow::pktLenCnt, _sfflow::pktTotal, _sfflow::portTcpDst, _sfflow::portTcpHigh, _sfflow::portTcpSrc, _sfflow::portTcpTotal, _sfflow::portUdpDst, _sfflow::portUdpHigh, _sfflow::portUdpSrc, _sfflow::portUdpTotal, SF_MAX_PKT_LEN, SF_MAX_PORT, _sfflow::typeIcmp, _sfflow::typeIcmpTotal, and UINT64.

Referenced by InitPerfStats().

int ProcessFlowStats SFFLOW sfFlow  ) 
 

Definition at line 224 of file perf-flow.c.

References _sfflow::byteTotal, DisplayFlowStats(), memset, _sfflow::pktLenCnt, _sfflow::pktTotal, _sfflow::portTcpDst, _sfflow::portTcpHigh, _sfflow::portTcpSrc, _sfflow::portTcpTotal, _sfflow::portUdpDst, _sfflow::portUdpHigh, _sfflow::portUdpSrc, _sfflow::portUdpTotal, SF_MAX_PKT_LEN, SF_MAX_PORT, _sfflow::typeIcmp, _sfflow::typeIcmpTotal, and UINT64.

Referenced by ProcessPerfStats().

SFFLOW* sfGetFlowPtr  ) 
 

Definition at line 63 of file perf-flow.c.

References _SFPERF::sfFlow, and sfPerf.

Referenced by UpdateICMPFlowStatsEx(), UpdateTCPFlowStatsEx(), and UpdateUDPFlowStatsEx().

int UpdateFlowStats SFFLOW sfFlow,
unsigned char *  pucPacket,
int  len,
int  iRebuiltPkt
 

Definition at line 205 of file perf-flow.c.

References _sfflow::byteTotal, _sfflow::pktLenCnt, _sfflow::pktTotal, and SF_MAX_PKT_LEN.

Referenced by UpdatePerfStats().

int UpdateICMPFlowStats SFFLOW sfFlow,
int  type,
int  len
 

Definition at line 180 of file perf-flow.c.

References _sfflow::typeIcmp, and _sfflow::typeIcmpTotal.

Referenced by UpdateICMPFlowStatsEx().

int UpdateICMPFlowStatsEx int  type,
int  len
 

Definition at line 192 of file perf-flow.c.

References _SFPERF::iPerfFlags, sfGetFlowPtr(), sfPerf, SFPERF_FLOW, and UpdateICMPFlowStats().

Referenced by ProcessPerfMonitor().

int UpdateTCPFlowStats SFFLOW sfFlow,
int  sport,
int  dport,
int  len
 

Definition at line 118 of file perf-flow.c.

References _sfflow::portTcpDst, _sfflow::portTcpHigh, _sfflow::portTcpSrc, _sfflow::portTcpTotal, and SF_MAX_PORT.

Referenced by UpdateTCPFlowStatsEx().

int UpdateTCPFlowStatsEx int  sport,
int  dport,
int  len
 

Definition at line 141 of file perf-flow.c.

References _SFPERF::iPerfFlags, sfGetFlowPtr(), sfPerf, SFPERF_FLOW, and UpdateTCPFlowStats().

Referenced by ProcessPerfMonitor().

int UpdateUDPFlowStats SFFLOW sfFlow,
int  sport,
int  dport,
int  len
 

Definition at line 149 of file perf-flow.c.

References _sfflow::portUdpDst, _sfflow::portUdpHigh, _sfflow::portUdpSrc, _sfflow::portUdpTotal, and SF_MAX_PORT.

Referenced by UpdateUDPFlowStatsEx().

int UpdateUDPFlowStatsEx int  sport,
int  dport,
int  len
 

Definition at line 172 of file perf-flow.c.

References _SFPERF::iPerfFlags, sfGetFlowPtr(), sfPerf, SFPERF_FLOW, and UpdateUDPFlowStats().

Referenced by ProcessPerfMonitor().


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