netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ulogd.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <time.h>
#include <ctype.h>
#include <signal.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <dirent.h>
#include <getopt.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
#include <libipulog/libipulog.h>
#include <ulogd/conffile.h>
#include <ulogd/ulogd.h>
Include dependency graph for ulogd.c:

Macros

#define ULOGD_VERSION   "1.23"
 
#define ULOGD_RMEM_DEFAULT   131071
 
#define ULOGD_BUFSIZE_DEFAULT   150000
 
#define DEBUGP(format, args...)
 
#define ULOGD_LOGFILE_DEFAULT   "/var/log/ulogd.log"
 
#define ULOGD_NLGROUP_DEFAULT   32
 
#define ULOGD_CONFIGFILE   "/etc/ulogd.conf"
 
#define INTERH_ALLOC_GRAN   5
 
#define KEYH_ALLOC_GRAN   20
 

Functions

unsigned int interh_getid (const char *name)
 
unsigned int keyh_getid (const char *name)
 
char * keyh_getname (unsigned int id)
 
ulog_iret_tkeyh_getres (unsigned int id)
 
void register_interpreter (ulog_interpreter_t *me)
 
void register_output (ulog_output_t *me)
 
void __ulogd_log (int level, char *file, int line, const char *format,...)
 
int main (int argc, char *argv[])
 

Variables

struct ulogd_keyh_entryulogd_keyh
 

Macro Definition Documentation

#define DEBUGP (   format,
  args... 
)

Referenced by main().

#define INTERH_ALLOC_GRAN   5
#define KEYH_ALLOC_GRAN   20
#define ULOGD_BUFSIZE_DEFAULT   150000
#define ULOGD_CONFIGFILE   "/etc/ulogd.conf"
#define ULOGD_LOGFILE_DEFAULT   "/var/log/ulogd.log"

Referenced by main().

#define ULOGD_NLGROUP_DEFAULT   32
#define ULOGD_RMEM_DEFAULT   131071
#define ULOGD_VERSION   "1.23"

Referenced by main().

Function Documentation

void __ulogd_log ( int  level,
char *  file,
int  line,
const char *  format,
  ... 
)
unsigned int interh_getid ( const char *  name)
unsigned int keyh_getid ( const char *  name)
char* keyh_getname ( unsigned int  id)
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