netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ulogd_inpflow_NFCT.c File Reference
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <time.h>
#include <netinet/in.h>
#include <netdb.h>
#include <ulogd/linuxlist.h>
#include <ulogd/jhash.h>
#include <ulogd/hash.h>
#include <ulogd/ulogd.h>
#include <ulogd/timer.h>
#include <ulogd/ipfix_protocol.h>
#include <ulogd/addr.h>
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
Include dependency graph for ulogd_inpflow_NFCT.c:

Data Structures

struct  ct_timestamp
 
struct  nfct_pluginstance
 

Macros

#define NSEC_PER_SEC   1000000000L
 
#define HTABLE_SIZE   (8192)
 
#define MAX_ENTRIES   (4 * HTABLE_SIZE)
 
#define EVENT_MASK   NF_NETLINK_CONNTRACK_NEW | NF_NETLINK_CONNTRACK_DESTROY
 
#define pollint_ce(x)   (x->ces[0])
 
#define usehash_ce(x)   (x->ces[1])
 
#define buckets_ce(x)   (x->ces[2])
 
#define maxentries_ce(x)   (x->ces[3])
 
#define eventmask_ce(x)   (x->ces[4])
 
#define nlsockbufsize_ce(x)   (x->ces[5])
 
#define nlsockbufmaxsize_ce(x)   (x->ces[6])
 
#define nlresynctimeout_ce(x)   (x->ces[7])
 
#define reliable_ce(x)   (x->ces[8])
 
#define src_filter_ce(x)   ((x)->ces[9])
 
#define dst_filter_ce(x)   ((x)->ces[10])
 
#define proto_filter_ce(x)   ((x)->ces[11])
 
#define NFCT_SRC_DIR   1
 
#define NFCT_DST_DIR   2
 

Typedefs

typedef enum TIMES_ TIMES
 

Enumerations

enum  TIMES_ {
  START,
  STOP,
  __TIME_MAX
}
 
enum  nfct_keys {
  NFCT_ORIG_IP_SADDR = 0,
  NFCT_ORIG_IP_DADDR,
  NFCT_ORIG_IP_PROTOCOL,
  NFCT_ORIG_L4_SPORT,
  NFCT_ORIG_L4_DPORT,
  NFCT_ORIG_RAW_PKTLEN,
  NFCT_ORIG_RAW_PKTCOUNT,
  NFCT_REPLY_IP_SADDR,
  NFCT_REPLY_IP_DADDR,
  NFCT_REPLY_IP_PROTOCOL,
  NFCT_REPLY_L4_SPORT,
  NFCT_REPLY_L4_DPORT,
  NFCT_REPLY_RAW_PKTLEN,
  NFCT_REPLY_RAW_PKTCOUNT,
  NFCT_ICMP_CODE,
  NFCT_ICMP_TYPE,
  NFCT_CT_MARK,
  NFCT_CT_ID,
  NFCT_CT_EVENT,
  NFCT_FLOW_START_SEC,
  NFCT_FLOW_START_USEC,
  NFCT_FLOW_END_SEC,
  NFCT_FLOW_END_USEC,
  NFCT_OOB_FAMILY,
  NFCT_OOB_PROTOCOL,
  NFCT_CT
}
 

Functions

void __attribute__ ((constructor))
 

Macro Definition Documentation

#define buckets_ce (   x)    (x->ces[2])
#define dst_filter_ce (   x)    ((x)->ces[10])
#define eventmask_ce (   x)    (x->ces[4])
#define HTABLE_SIZE   (8192)
#define MAX_ENTRIES   (4 * HTABLE_SIZE)
#define maxentries_ce (   x)    (x->ces[3])
#define NFCT_DST_DIR   2
#define NFCT_SRC_DIR   1
#define nlresynctimeout_ce (   x)    (x->ces[7])
#define nlsockbufmaxsize_ce (   x)    (x->ces[6])
#define nlsockbufsize_ce (   x)    (x->ces[5])
#define NSEC_PER_SEC   1000000000L
#define pollint_ce (   x)    (x->ces[0])
#define proto_filter_ce (   x)    ((x)->ces[11])
#define reliable_ce (   x)    (x->ces[8])
#define src_filter_ce (   x)    ((x)->ces[9])
#define usehash_ce (   x)    (x->ces[1])

Typedef Documentation

typedef enum TIMES_ TIMES

Enumeration Type Documentation

enum nfct_keys
Enumerator
NFCT_ORIG_IP_SADDR 
NFCT_ORIG_IP_DADDR 
NFCT_ORIG_IP_PROTOCOL 
NFCT_ORIG_L4_SPORT 
NFCT_ORIG_L4_DPORT 
NFCT_ORIG_RAW_PKTLEN 
NFCT_ORIG_RAW_PKTCOUNT 
NFCT_REPLY_IP_SADDR 
NFCT_REPLY_IP_DADDR 
NFCT_REPLY_IP_PROTOCOL 
NFCT_REPLY_L4_SPORT 
NFCT_REPLY_L4_DPORT 
NFCT_REPLY_RAW_PKTLEN 
NFCT_REPLY_RAW_PKTCOUNT 
NFCT_ICMP_CODE 
NFCT_ICMP_TYPE 
NFCT_CT_MARK 
NFCT_CT_ID 
NFCT_CT_EVENT 
NFCT_FLOW_START_SEC 
NFCT_FLOW_START_USEC 
NFCT_FLOW_END_SEC 
NFCT_FLOW_END_USEC 
NFCT_OOB_FAMILY 
NFCT_OOB_PROTOCOL 
NFCT_CT 
enum TIMES_
Enumerator
START 
STOP 
__TIME_MAX 

Function Documentation

void __attribute__ ( (constructor)  )

References ulogd_register_plugin().

Here is the call graph for this function: