![]() |
flowmon-http-plugins
1.0
FlowMon HTTP Input/Process/export plugins
|
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 |
Export plugin for flowmon, exports data in csv format into file.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
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.
Definition in file flowmon-export-csv.c.
#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.
SET_PLUGIN_TYPE | ( | PLUGIN_TYPE_EXPORT | ) |
Set plugin type for flowmon.
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.