netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ulogd_inppkt_ULOG.c File Reference
#include <unistd.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <string.h>
#include <ulogd/ulogd.h>
#include <libipulog/libipulog.h>
Include dependency graph for ulogd_inppkt_ULOG.c:

Data Structures

struct  ulog_input
 

Macros

#define ULOGD_NLGROUP_DEFAULT   32
 
#define ULOGD_RMEM_DEFAULT   131071
 
#define ULOGD_BUFSIZE_DEFAULT   150000
 

Enumerations

enum  ulog_keys {
  ULOG_KEY_RAW_MAC = 0,
  ULOG_KEY_RAW_PCKT,
  ULOG_KEY_RAW_PCKTLEN,
  ULOG_KEY_RAW_PCKTCOUNT,
  ULOG_KEY_OOB_PREFIX,
  ULOG_KEY_OOB_TIME_SEC,
  ULOG_KEY_OOB_TIME_USEC,
  ULOG_KEY_OOB_MARK,
  ULOG_KEY_OOB_IN,
  ULOG_KEY_OOB_OUT,
  ULOG_KEY_OOB_HOOK,
  ULOG_KEY_RAW_MAC_LEN,
  ULOG_KEY_OOB_FAMILY,
  ULOG_KEY_OOB_PROTOCOL,
  ULOG_KEY_RAW_LABEL
}
 

Functions

void __attribute__ ((constructor))
 

Variables

struct ulogd_plugin libulog_plugin
 

Macro Definition Documentation

#define ULOGD_BUFSIZE_DEFAULT   150000
#define ULOGD_NLGROUP_DEFAULT   32
#define ULOGD_RMEM_DEFAULT   131071

Enumeration Type Documentation

enum ulog_keys
Enumerator
ULOG_KEY_RAW_MAC 
ULOG_KEY_RAW_PCKT 
ULOG_KEY_RAW_PCKTLEN 
ULOG_KEY_RAW_PCKTCOUNT 
ULOG_KEY_OOB_PREFIX 
ULOG_KEY_OOB_TIME_SEC 
ULOG_KEY_OOB_TIME_USEC 
ULOG_KEY_OOB_MARK 
ULOG_KEY_OOB_IN 
ULOG_KEY_OOB_OUT 
ULOG_KEY_OOB_HOOK 
ULOG_KEY_RAW_MAC_LEN 
ULOG_KEY_OOB_FAMILY 
ULOG_KEY_OOB_PROTOCOL 
ULOG_KEY_RAW_LABEL 

Function Documentation

void __attribute__ ( (constructor)  )

References ulogd_register_plugin().

Here is the call graph for this function:

Variable Documentation

struct ulogd_plugin libulog_plugin
Initial value:
= {
.name = "ULOG",
.input = {
.keys = NULL,
.num_keys = 0,
},
.output = {
.type = ULOGD_DTYPE_RAW,
.keys = output_keys,
.num_keys = ARRAY_SIZE(output_keys),
},
.configure = &configure,
.start = &init,
.stop = &fini,
.config_kset = &libulog_kset,
.version = VERSION,
}
#define NULL
Definition: linux_stddef.h:8
int init(void)
Definition: run.c:223
output_keys
Definition: ulogd_raw2packet_BASE.c:54
Definition: ulogd.h:77
Definition: ulogd.h:78
#define ARRAY_SIZE
Definition: helper.h:71