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

Data Structures

struct  ulog_iret
 
struct  ulog_interpreter
 
struct  ulog_output
 
struct  ulogd_keyh_entry
 

Macros

#define ULOGD_RET_NONE   0x0000
 
#define ULOGD_RET_INT8   0x0001
 
#define ULOGD_RET_INT16   0x0002
 
#define ULOGD_RET_INT32   0x0003
 
#define ULOGD_RET_INT64   0x0004
 
#define ULOGD_RET_UINT8   0x0011
 
#define ULOGD_RET_UINT16   0x0012
 
#define ULOGD_RET_UINT32   0x0013
 
#define ULOGD_RET_UINT64   0x0014
 
#define ULOGD_RET_BOOL   0x0050
 
#define ULOGD_RET_IPADDR   0x0100
 
#define ULOGD_RET_STRING   0x8020
 
#define ULOGD_RET_RAW   0x8030
 
#define ULOGD_RETF_NONE   0x0000
 
#define ULOGD_RETF_VALID   0x0001 /* contains a valid result */
 
#define ULOGD_RETF_FREE   0x0002 /* ptr needs to be free()d */
 
#define ULOGD_MAX_KEYLEN   32
 
#define ULOGD_DEBUG   1 /* debugging information */
 
#define ULOGD_INFO   3
 
#define ULOGD_NOTICE   5 /* abnormal/unexpected condition */
 
#define ULOGD_ERROR   7 /* error condition, requires user action */
 
#define ULOGD_FATAL   8 /* fatal, program aborted */
 
#define ulogd_log(level, format, args...)   __ulogd_log(level, __FILE__, __LINE__, format, ## args)
 
#define ulogd_error(format, args...)   ulogd_log(ULOGD_ERROR, format, ## args)
 
#define IS_VALID(x)   (x.flags & ULOGD_RETF_VALID)
 
#define SET_VALID(x)   (x.flags |= ULOGD_RETF_VALID)
 

Typedefs

typedef struct ulog_iret ulog_iret_t
 
typedef struct ulog_interpreter ulog_interpreter_t
 
typedef struct ulog_output ulog_output_t
 

Functions

void register_interpreter (ulog_interpreter_t *me)
 
void register_output (ulog_output_t *me)
 
ulog_iret_talloc_ret (const u_int16_t type, const char *)
 
void __ulogd_log (int level, char *file, int line, const char *message,...)
 
unsigned int interh_getid (const char *name)
 
unsigned int keyh_getid (const char *name)
 
ulog_iret_tkeyh_getres (unsigned int id)
 

Variables

struct ulogd_keyh_entryulogd_keyh
 

Macro Definition Documentation

#define IS_VALID (   x)    (x.flags & ULOGD_RETF_VALID)
#define SET_VALID (   x)    (x.flags |= ULOGD_RETF_VALID)
#define ULOGD_DEBUG   1 /* debugging information */
#define ULOGD_ERROR   7 /* error condition, requires user action */
#define ulogd_error (   format,
  args... 
)    ulogd_log(ULOGD_ERROR, format, ## args)
#define ULOGD_FATAL   8 /* fatal, program aborted */
#define ULOGD_INFO   3
#define ULOGD_MAX_KEYLEN   32
#define ULOGD_RET_BOOL   0x0050

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_INT16   0x0002

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_INT32   0x0003

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_INT64   0x0004

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_INT8   0x0001

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_IPADDR   0x0100

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_NONE   0x0000
#define ULOGD_RET_RAW   0x8030

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_STRING   0x8020

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_UINT16   0x0012

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_UINT32   0x0013

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_UINT64   0x0014

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RET_UINT8   0x0011

Referenced by type_to_string(), and ulogd_key_size().

#define ULOGD_RETF_FREE   0x0002 /* ptr needs to be free()d */
#define ULOGD_RETF_NONE   0x0000
#define ULOGD_RETF_VALID   0x0001 /* contains a valid result */

Typedef Documentation

Function Documentation

void __ulogd_log ( int  level,
char *  file,
int  line,
const char *  message,
  ... 
)
ulog_iret_t* alloc_ret ( const u_int16_t  type,
const char *   
)
unsigned int interh_getid ( const char *  name)
unsigned int keyh_getid ( const char *  name)
void register_output ( ulog_output_t me)

References ulog_output::name, ulog_output::next, ULOGD_INFO, ulogd_log, and ULOGD_NOTICE.

Referenced by _init().

Here is the caller graph for this function:

Variable Documentation

struct ulogd_keyh_entry* ulogd_keyh