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

perf-flow.h File Reference

Go to the source code of this file.

Defines

#define SF_MAX_PKT_LEN   4500
#define SF_MAX_PORT   1024

Typedefs

typedef _portflow PORTFLOW
typedef _icmpflow ICMPFLOW
typedef _sfflow SFFLOW
typedef _sfflow_stats SFFLOW_STATS

Functions

int InitFlowStats (SFFLOW *sfFlow)
int UpdateFlowStats (SFFLOW *sfFlow, unsigned char *pucBuffer, int len, int iRebuiltPkt)
int ProcessFlowStats (SFFLOW *sfFlow)
int UpdateUDPFlowStatsEx (int sport, int dport, int len)
int UpdateTCPFlowStatsEx (int sport, int dport, int len)
int UpdateICMPFlowStatsEx (int type, int len)


Define Documentation

#define SF_MAX_PKT_LEN   4500
 

Definition at line 30 of file perf-flow.h.

Referenced by DisplayFlowStats(), InitFlowStats(), ProcessFlowStats(), and UpdateFlowStats().

#define SF_MAX_PORT   1024
 

Definition at line 31 of file perf-flow.h.

Referenced by DisplayFlowStats(), InitFlowStats(), ProcessFlowStats(), UpdateTCPFlowStats(), and UpdateUDPFlowStats().


Typedef Documentation

typedef struct _icmpflow ICMPFLOW
 

typedef struct _portflow PORTFLOW
 

typedef struct _sfflow SFFLOW
 

typedef struct _sfflow_stats SFFLOW_STATS
 


Function Documentation

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().

int UpdateFlowStats SFFLOW sfFlow,
unsigned char *  pucBuffer,
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 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 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 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