netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ulogd_PCAP.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <pcap.h>
#include <ulogd/ulogd.h>
#include <ulogd/conffile.h>
Include dependency graph for ulogd_PCAP.c:

Data Structures

struct  pcap_timeval
 
struct  pcap_sf_pkthdr
 
struct  intr_id
 

Macros

#define ULOGD_PCAP_DEFAULT   "/var/log/ulogd.pcap"
 
#define ULOGD_PCAP_SYNC_DEFAULT   0
 
#define NIPQUAD(addr)
 
#define INTR_IDS   5
 
#define GET_VALUE(x)   ulogd_keyh[intr_ids[x].id].interp->result[ulogd_keyh[intr_ids[x].id].offset].value
 
#define GET_FLAGS(x)   ulogd_keyh[intr_ids[x].id].interp->result[ulogd_keyh[intr_ids[x].id].offset].flags
 
#define LINKTYPE_RAW   101
 
#define TCPDUMP_MAGIC   0xa1b2c3d4
 

Functions

void append_create_outfile (void)
 
void _init (void)
 

Macro Definition Documentation

#define GET_FLAGS (   x)    ulogd_keyh[intr_ids[x].id].interp->result[ulogd_keyh[intr_ids[x].id].offset].flags
#define GET_VALUE (   x)    ulogd_keyh[intr_ids[x].id].interp->result[ulogd_keyh[intr_ids[x].id].offset].value
#define INTR_IDS   5
#define LINKTYPE_RAW   101
#define NIPQUAD (   addr)
Value:
((unsigned char *)&addr)[0], \
((unsigned char *)&addr)[1], \
((unsigned char *)&addr)[2], \
((unsigned char *)&addr)[3]
#define TCPDUMP_MAGIC   0xa1b2c3d4
#define ULOGD_PCAP_DEFAULT   "/var/log/ulogd.pcap"
#define ULOGD_PCAP_SYNC_DEFAULT   0

Function Documentation

void _init ( void  )

References register_output(), ULOGD_ERROR, and ulogd_log.

Here is the call graph for this function:

void append_create_outfile ( void  )