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

Header for the code of the Flowmon IPFIX Export Plugin. More...

#include <time.h>
#include <netdb.h>

Go to the source code of this file.

Data Structures

struct  template_file_record_t
 Structure to hold one entry of template-file. More...
struct  template_t
 Structure to hold template record. More...
struct  plugin_private_t
 Structure that holds plugin internal data between function calls. More...
struct  ipfix_packet_t
 Structure of ipfix packet used by send functions. More...
struct  ipfix_header
 IPFIX header structure. More...
struct  ipfix_template_set_header
 Common IPFIX Set (header) structure. More...

Macros

#define MSG(format,...)   {}
#define DEFAULT_TEMPLATE_FILE   "/etc/flowmon/ipfix-template-file.txt"
#define FIRST_TEMPLATE_ID   258
#define IPFIX_VERISON   10
#define TEMPLATE_SET_ID   2
#define PACKET_DATA_SIZE   1458 /* ethernet 14, ip 20, udp 8 */
#define TEMPLATE_BUFFER_SIZE   (PACKET_DATA_SIZE - IPFIX_HEADER_SIZE)
#define IPFIX_HEADER_SIZE   16
#define IPFIX_SET_HEADER_SIZE   4
#define RECONNECT_TIMEOUT   60

Typedefs

typedef struct template_t template_t
 Structure to hold template record.
typedef struct ipfix_header ipfix_header_t
 IPFIX header structure.
typedef struct
ipfix_template_set_header 
ipfix_template_set_header_t
 Common IPFIX Set (header) structure.

Detailed Description

Header for the 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.h 858 2012-12-12 10:34:02Z 255519

Definition in file flowmon-export-ipfix.h.


Macro Definition Documentation

#define MSG (   format,
  ... 
)    {}

Definition at line 45 of file flowmon-export-ipfix.h.

#define DEFAULT_TEMPLATE_FILE   "/etc/flowmon/ipfix-template-file.txt"

Definition at line 48 of file flowmon-export-ipfix.h.

#define FIRST_TEMPLATE_ID   258

Definition at line 49 of file flowmon-export-ipfix.h.

#define IPFIX_VERISON   10

Definition at line 50 of file flowmon-export-ipfix.h.

#define TEMPLATE_SET_ID   2

Definition at line 51 of file flowmon-export-ipfix.h.

#define PACKET_DATA_SIZE   1458 /* ethernet 14, ip 20, udp 8 */

Definition at line 52 of file flowmon-export-ipfix.h.

#define TEMPLATE_BUFFER_SIZE   (PACKET_DATA_SIZE - IPFIX_HEADER_SIZE)

Definition at line 54 of file flowmon-export-ipfix.h.

#define IPFIX_HEADER_SIZE   16

Definition at line 55 of file flowmon-export-ipfix.h.

#define IPFIX_SET_HEADER_SIZE   4

Definition at line 56 of file flowmon-export-ipfix.h.

#define RECONNECT_TIMEOUT   60

Definition at line 57 of file flowmon-export-ipfix.h.


Typedef Documentation

typedef struct template_t template_t

Structure to hold template record.

typedef struct ipfix_header ipfix_header_t

IPFIX header structure.

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Version Number | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Export Time | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Observation Domain ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Common IPFIX Set (header) structure.

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Set ID | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+