flowmon-export-ipfix  1.2.1
FlowMon IPFIX Export Plugin
 All Data Structures Files Functions Variables Typedefs Macros Pages
flowmon-export-ipfix.c File Reference

Main code of the Flowmon IPFIX Export Plugin. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <endian.h>
#include <errno.h>
#include <flowmonexp/plugin_export.h>
#include "flowmon-export-ipfix.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE

Functions

 SET_PLUGIN_TYPE (PLUGIN_TYPE_EXPORT)
plugin_desc_t * plugin_export_desc ()
 Function returning plugin description.
void * plugin_export_init (char *params, flow_record_getter_t *getter_list)
 Plugin initialization.
int plugin_export_export (void *plugin_private, flow_record_t *record)
 Function called for each exported flow.
int plugin_export_flush (void *plugin_private)
 Fuction called when all stored flows need to be exported.

Detailed Description

Main code of the Flowmon IPFIX Export Plugin.

Author:
Petr Velan velan.nosp@m.@mai.nosp@m.l.mun.nosp@m.i.cz
Date:
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-ipfix.c 928 2013-01-16 08:32:47Z 255519

Definition in file flowmon-export-ipfix.c.


Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 58 of file flowmon-export-ipfix.c.


Function Documentation

SET_PLUGIN_TYPE ( PLUGIN_TYPE_EXPORT  )

This is an export plugin

plugin_desc_t* plugin_export_desc ( )

Function returning plugin description.

flowmon API function

Returns:
plugin description

Definition at line 1076 of file flowmon-export-ipfix.c.

void* plugin_export_init ( char *  params,
flow_record_getter_t *  getter_list 
)

Plugin initialization.

flowmon API function

Parameters:
paramsParameters from the command line
getter_listList of available getters
Returns:
Returns pointer to internal structure passed to plugin in future calls

Definition at line 1091 of file flowmon-export-ipfix.c.

int plugin_export_export ( void *  plugin_private,
flow_record_t *  record 
)

Function called for each exported flow.

flowmon API function

Parameters:
plugin_privatePlugin's private data
recordRecord to export
Returns:
Returns 0 on success

Definition at line 1139 of file flowmon-export-ipfix.c.

int plugin_export_flush ( void *  plugin_private)

Fuction called when all stored flows need to be exported.

flowmon API function

Parameters:
plugin_privatePlugin's private data
Returns:
Returns 0 on success

Definition at line 1203 of file flowmon-export-ipfix.c.