flowmon-http-plugins  1.0
FlowMon HTTP Input/Process/export plugins
 All Data Structures Files Functions Variables Typedefs Macros
flowmon-export-csv.c File Reference

Export plugin for flowmon, exports data in csv format into file. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <flowmonexp/plugin_export.h>

Go to the source code of this file.

Data Structures

struct  plugin_private_csv
 plugin private structure More...

Macros

#define PRINTV(format, args...)   do {if (VERBOSE) { fprintf(stdout, format, ##args); fflush(stdout); } } while (0)
#define PRINTD(format, args...)   do {if (DEBUG) { fprintf(stdout, format, ##args); fflush(stdout); } } while (0)
#define PRINTA(format, args...)   do {if (VERBOSE || DEBUG) { fprintf(stdout, format, ##args); fflush(stdout); } } while (0)

Functions

 SET_PLUGIN_TYPE (PLUGIN_TYPE_EXPORT)
 Set plugin type for flowmon.

Variables

int verbose_level
int debug_level
bool VERBOSE
bool DEBUG

Detailed Description

Export plugin for flowmon, exports data in csv format into file.

Author:
Tomas Sima simat.nosp@m.omas.nosp@m.@mail.nosp@m..mun.nosp@m.i.cz#
Date:
16.12.2012

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the Masaryk University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided ``as is'', and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the company or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Id:
flowmon-export-csv.c 988 2013-01-30 22:18:43Z 374541

Definition in file flowmon-export-csv.c.


Macro Definition Documentation

#define PRINTV (   format,
  args... 
)    do {if (VERBOSE) { fprintf(stdout, format, ##args); fflush(stdout); } } while (0)

Print when verbose mode is on

Definition at line 47 of file flowmon-export-csv.c.

#define PRINTD (   format,
  args... 
)    do {if (DEBUG) { fprintf(stdout, format, ##args); fflush(stdout); } } while (0)

Print when debug mode is on

Definition at line 49 of file flowmon-export-csv.c.

#define PRINTA (   format,
  args... 
)    do {if (VERBOSE || DEBUG) { fprintf(stdout, format, ##args); fflush(stdout); } } while (0)

Print when debug of verbose mode is on

Definition at line 51 of file flowmon-export-csv.c.


Function Documentation

SET_PLUGIN_TYPE ( PLUGIN_TYPE_EXPORT  )

Set plugin type for flowmon.


Variable Documentation

int verbose_level

Verbose flag

int debug_level

Debug flag

bool VERBOSE

Verbose flag

Definition at line 65 of file flowmon-export-csv.c.

bool DEBUG

Debug flag

Definition at line 68 of file flowmon-export-csv.c.