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

flow_stat.h File Reference

#include <stdio.h>
#include <time.h>
#include "flow.h"

Go to the source code of this file.

Functions

int flowstat_clear (FLOWSTATS *fsp)
int flowstat_print (FLOWSTATS *fsp)
int flowstat_increment (FLOWSTATS *fsp, int direction, time_t cur, u_int32_t bytes)
int flowstat_callback (FLOW_POSITION position, FLOW *flow, int direction, time_t cur, FLOWPACKET *p)


Function Documentation

int flowstat_callback FLOW_POSITION  position,
FLOW flowp,
int  direction,
time_t  cur,
FLOWPACKET p
 

The callback for the flowstats processor

Parameters:
position where in the flow module this is being called from
flow the flow that the stats are kept for
direction the direction of the flow
cur the current time
p the current packet (may be NULL)
Returns:
TBD

Definition at line 101 of file flow_stat.c.

References FLOW_ADDITIONAL, FLOW_FIRST_BIDIRECTIONAL, FLOW_NEW, FLOW_SHUTDOWN, flowstat_increment(), GetIPv4Len(), and _FLOW::stats.

Referenced by flow_callbacks().

int flowstat_clear FLOWSTATS fsp  ) 
 

Reinitialize the flowstats

Parameters:
fsp flowstat pointer
Returns:
0 on success, else failure

Definition at line 21 of file flow_stat.c.

References memset, and NULL.

Referenced by flow_init().

int flowstat_increment FLOWSTATS fsp,
int  direction,
time_t  cur,
u_int32_t  bytes
 

Definition at line 55 of file flow_stat.c.

References _FLOWSTATS::bytes_recv, _FLOWSTATS::bytes_sent, _FLOWSTATS::first_packet, _FLOWSTATS::first_talker, flow_printf(), FROM_INITIATOR, FROM_RESPONDER, _FLOWSTATS::last_packet, _FLOWSTATS::last_talker, _FLOWSTATS::packets_recv, and _FLOWSTATS::packets_sent.

Referenced by flowstat_callback().

int flowstat_print FLOWSTATS fsp  ) 
 

Definition at line 33 of file flow_stat.c.

References _FLOWSTATS::alerts_seen, _FLOWSTATS::bytes_recv, _FLOWSTATS::bytes_sent, _FLOWSTATS::first_packet, _FLOWSTATS::first_talker, _FLOWSTATS::flow_flags, flow_printf(), _FLOWSTATS::last_packet, _FLOWSTATS::last_talker, _FLOWSTATS::packets_recv, and _FLOWSTATS::packets_sent.


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