netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ulogd_output_IPFIX.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <ulogd/linuxlist.h>
#include <ulogd/ulogd.h>
#include <ulogd/conffile.h>
#include <ulogd/ipfix_protocol.h>
Include dependency graph for ulogd_output_IPFIX.c:

Data Structures

struct  bitmask
 
struct  ipfix_template
 
struct  ulogd_ipfix_template
 
struct  ipfix_instance
 

Macros

#define IPFIX_DEFAULT_TCPUDP_PORT   4739
 
#define SIZE_OCTETS(x)   ((x/8)+1)
 
#define bitmask_clear_bit(bm, bit)   bitmask_set_bit_to(bm, bit, 0)
 
#define bitmask_set_bit(bm, bit)   bitmask_set_bit_to(bm, bit, 1)
 
#define host_ce(x)   (x->ces[0])
 
#define port_ce(x)   (x->ces[1])
 
#define proto_ce(x)   (x->ces[2])
 
#define ULOGD_IPFIX_TEMPL_BASE   1024
 

Functions

void bitmask_clear (struct bitmask *bm)
 
struct bitmaskbitmask_alloc (unsigned int num_bits)
 
void bitmask_free (struct bitmask *bm)
 
int bitmask_set_bit_to (struct bitmask *bm, unsigned int bits, int to)
 
int bitmasks_equal (const struct bitmask *bm1, const struct bitmask *bm2)
 
struct bitmaskbitmask_dup (const struct bitmask *bm_orig)
 
struct ulogd_ipfix_templatebuild_template_for_bitmask (struct ulogd_pluginstance *upi, struct bitmask *bm)
 
void __attribute__ ((constructor))
 

Macro Definition Documentation

#define bitmask_clear_bit (   bm,
  bit 
)    bitmask_set_bit_to(bm, bit, 0)
#define bitmask_set_bit (   bm,
  bit 
)    bitmask_set_bit_to(bm, bit, 1)
#define host_ce (   x)    (x->ces[0])
#define IPFIX_DEFAULT_TCPUDP_PORT   4739
#define port_ce (   x)    (x->ces[1])
#define proto_ce (   x)    (x->ces[2])
#define SIZE_OCTETS (   x)    ((x/8)+1)
#define ULOGD_IPFIX_TEMPL_BASE   1024

Function Documentation

void __attribute__ ( (constructor)  )

References ulogd_register_plugin().

Here is the call graph for this function:

struct bitmask* bitmask_alloc ( unsigned int  num_bits)

References bitmask_clear(), bitmask::buf, NULL, bitmask::size_bits, and SIZE_OCTETS.

Here is the call graph for this function:

void bitmask_clear ( struct bitmask bm)

References bitmask::buf, bitmask::size_bits, and SIZE_OCTETS.

Referenced by bitmask_alloc().

Here is the caller graph for this function:

struct bitmask* bitmask_dup ( const struct bitmask bm_orig)

References NULL, size, bitmask::size_bits, and SIZE_OCTETS.

Referenced by build_template_for_bitmask().

Here is the caller graph for this function:

void bitmask_free ( struct bitmask bm)
int bitmask_set_bit_to ( struct bitmask bm,
unsigned int  bits,
int  to 
)
int bitmasks_equal ( const struct bitmask bm1,
const struct bitmask bm2 
)