#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>
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 bitmask * | bitmask_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 bitmask * | bitmask_dup (const struct bitmask *bm_orig) |
struct ulogd_ipfix_template * | build_template_for_bitmask (struct ulogd_pluginstance *upi, struct bitmask *bm) |
void | __attribute__ ((constructor)) |
#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) |
Referenced by bitmask_alloc(), bitmask_clear(), bitmask_dup(), bitmask_set_bit_to(), and bitmasks_equal().
#define ULOGD_IPFIX_TEMPL_BASE 1024 |
void __attribute__ | ( | (constructor) | ) |
References bitmask_clear(), bitmask::buf, NULL, bitmask::size_bits, and SIZE_OCTETS.
References bitmask::buf, bitmask::size_bits, and SIZE_OCTETS.
Referenced by bitmask_alloc().
References NULL, size, bitmask::size_bits, and SIZE_OCTETS.
Referenced by build_template_for_bitmask().
References bitmask::buf, bitmask::size_bits, and SIZE_OCTETS.
References bitmask::buf, bitmask::size_bits, and SIZE_OCTETS.
struct ulogd_ipfix_template* build_template_for_bitmask | ( | struct ulogd_pluginstance * | upi, |
struct bitmask * | bm | ||
) |
References bitmask_dup(), ipfix_vendor_field::enterprise_num, ulogd_key::field_id, ulogd_key::flags, ulogd_pluginstance::input, ulogd_key::ipfix, IPFIX_VENDOR_IETF, ulogd_keyset::keys, ipfix_ietf_field::length, ipfix_vendor_field::length, ulogd_key::name, NULL, ulogd_keyset::num_keys, ulogd_pluginstance::private, size, ulogd_key::source, ipfix_instance::tmpl, ipfix_ietf_field::type, ipfix_vendor_field::type, ulogd_key::u, ULOGD_INFO, ulogd_key_size(), ulogd_log, ULOGD_RETF_VALID, and ulogd_key::vendor.