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

flow_print.c File Reference

#include "flow_print.h"
#include "flow_error.h"
#include <unistd.h>
#include <syslog.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

Go to the source code of this file.

Defines

#define BUFSIZE   1024

Functions

int flow_set_daemon (void)
int flow_printf (const char *format,...)
int flow_fatalerror (const char *format,...)
int flow_errormsg (const char *format,...)

Variables

static int s_daemon = 0


Define Documentation

#define BUFSIZE   1024
 

Definition at line 16 of file flow_print.c.

Referenced by flow_errormsg(), flow_fatalerror(), and flow_printf().


Function Documentation

int flow_errormsg const char *  format,
  ...
 

Definition at line 92 of file flow_print.c.

References BUFSIZE, FLOW_SUCCESS, LOG_CONS, LOG_DAEMON, LOG_ERR, s_daemon, snprintf, syslog(), and vsnprintf.

int flow_fatalerror const char *  format,
  ...
 

Definition at line 62 of file flow_print.c.

References BUFSIZE, FLOW_SUCCESS, LOG_CONS, LOG_DAEMON, LOG_ERR, s_daemon, snprintf, syslog(), and vsnprintf.

Referenced by flowps_init_pkt(), FlowPSInit(), FlowPSParseArgs(), and FlowPSParseOption().

int flow_printf const char *  format,
  ...
 

flow's printf

Parameters:
format format to print in
... args
Returns:
FLOW_SUCCESS on sucess

Definition at line 39 of file flow_print.c.

References BUFSIZE, FLOW_SUCCESS, LOG_CONS, LOG_DAEMON, LOG_ERR, s_daemon, syslog(), and vsnprintf.

Referenced by CheckFlowShutdown(), flow_callbacks(), flow_init(), flowcache_newflow(), flowcache_stats(), flowkey_print(), FlowParseArgs(), FlowPreprocessor(), flowps_entry_print(), flowps_get_score(), flowps_newflow_callback(), flowps_score_print(), flowps_stats(), FlowPSOutputConfig(), FlowPSParseOption(), flowstat_increment(), flowstat_print(), scoreboard_add(), scoreboard_dump(), scoreboard_init(), scoreboard_stats(), server_stats(), server_stats_dump(), server_stats_save(), unique_tracker_dump(), ut_init(), and ut_stats().

int flow_set_daemon void   ) 
 

Make this library print to syslog

Returns:
FLOW_SUCCESS

Definition at line 24 of file flow_print.c.

References FLOW_SUCCESS, and s_daemon.

Referenced by ParseCmdLine(), and ParseConfig().


Variable Documentation

int s_daemon = 0 [static]
 

Definition at line 14 of file flow_print.c.

Referenced by flow_errormsg(), flow_fatalerror(), flow_printf(), and flow_set_daemon().


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