netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
printpkt.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <ulogd/ulogd.h>
#include <ulogd/conffile.h>
Include dependency graph for printpkt.c:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  intr_id
 

Macros

#define HOST_NAME_MAX   (255+1)
 
#define NIPQUAD(addr)
 
#define INTR_IDS   35
 
#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
 

Functions

int printpkt_print (ulog_iret_t *res, char *buf, int prefix)
 
int printpkt_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

Referenced by printpkt_print().

#define GET_VALUE (   x)    ulogd_keyh[intr_ids[x].id].interp->result[ulogd_keyh[intr_ids[x].id].offset].value

Referenced by printpkt_print().

#define HOST_NAME_MAX   (255+1)
#define INTR_IDS   35
#define NIPQUAD (   addr)
Value:
((unsigned char *)&addr)[0], \
((unsigned char *)&addr)[1], \
((unsigned char *)&addr)[2], \
((unsigned char *)&addr)[3]

Function Documentation

int printpkt_init ( void  )

References ULOGD_FATAL, and ulogd_log.

Referenced by _init().

Here is the caller graph for this function:

int printpkt_print ( ulog_iret_t res,
char *  buf,
int  prefix 
)