#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <time.h>
#include <ctype.h>
#include <signal.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <fcntl.h>
#include <dirent.h>
#include <getopt.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <ulogd/conffile.h>
#include <ulogd/ulogd.h>
Macros | |
#define | DEBUGP(format, args...) |
#define | COPYRIGHT |
#define | logfile_ce ulogd_kset.ces[0] |
#define | plugin_ce ulogd_kset.ces[1] |
#define | loglevel_ce ulogd_kset.ces[2] |
#define | stack_ce ulogd_kset.ces[3] |
Functions | |
int | ulogd_key_size (struct ulogd_key *key) |
int | ulogd_wildcard_inputkeys (struct ulogd_pluginstance *upi) |
char * | type_to_string (int type) |
void | get_plugin_infos (struct ulogd_plugin *me) |
void | ulogd_register_plugin (struct ulogd_plugin *me) |
void | __ulogd_log (int level, char *file, int line, const char *format,...) |
void | ulogd_propagate_results (struct ulogd_pluginstance *pi) |
int | main (int argc, char *argv[]) |
#define COPYRIGHT |
Referenced by main().
#define DEBUGP | ( | format, | |
args... | |||
) |
#define logfile_ce ulogd_kset.ces[0] |
#define loglevel_ce ulogd_kset.ces[2] |
Referenced by __ulogd_log(), and main().
#define plugin_ce ulogd_kset.ces[1] |
#define stack_ce ulogd_kset.ces[3] |
void __ulogd_log | ( | int | level, |
char * | file, | ||
int | line, | ||
const char * | format, | ||
... | |||
) |
References loglevel_ce, NULL, config_entry::u, and config_entry::value.
void get_plugin_infos | ( | struct ulogd_plugin * | me | ) |
References config_keyset::ces, ulogd_plugin::config_kset, CONFIG_OPT_MANDATORY, CONFIG_TYPE_CALLBACK, CONFIG_TYPE_INT, CONFIG_TYPE_STRING, ulogd_key::flags, ulogd_plugin::input, config_entry::key, ulogd_keyset::keys, ulogd_key::name, ulogd_plugin::name, config_keyset::num_ces, ulogd_keyset::num_keys, config_entry::options, ulogd_plugin::output, config_entry::string, config_entry::type, ulogd_key::type, ulogd_keyset::type, type_to_string(), config_entry::u, ULOGD_DTYPE_SINK, ULOGD_DTYPE_SOURCE, ULOGD_KEYF_OPTIONAL, and config_entry::value.
Referenced by ulogd_register_plugin().
int main | ( | int | argc, |
char * | argv[] | ||
) |
References CONFIG_FLAG_VAL_PROTECTED, config_register_file(), COPYRIGHT, loglevel_ce, NULL, ULOGD_ERROR, ULOGD_FATAL, ULOGD_INFO, ulogd_log, ULOGD_LOGFILE_DEFAULT, and ULOGD_NOTICE.
char* type_to_string | ( | int | type | ) |
References ULOGD_RET_BOOL, ULOGD_RET_INT16, ULOGD_RET_INT32, ULOGD_RET_INT64, ULOGD_RET_INT8, ULOGD_RET_IPADDR, ULOGD_RET_RAW, ULOGD_RET_STRING, ULOGD_RET_UINT16, ULOGD_RET_UINT32, ULOGD_RET_UINT64, and ULOGD_RET_UINT8.
Referenced by get_plugin_infos().
References ulogd_key::len, ulogd_key::name, ulogd_key::type, ulogd_key::u, ULOGD_ERROR, ulogd_log, ULOGD_RET_BOOL, ULOGD_RET_INT16, ULOGD_RET_INT32, ULOGD_RET_INT64, ULOGD_RET_INT8, ULOGD_RET_IP6ADDR, ULOGD_RET_IPADDR, ULOGD_RET_RAW, ULOGD_RET_STRING, ULOGD_RET_UINT16, ULOGD_RET_UINT32, ULOGD_RET_UINT64, ULOGD_RET_UINT8, and ulogd_key::value.
Referenced by build_template_for_bitmask().
void ulogd_propagate_results | ( | struct ulogd_pluginstance * | pi | ) |
void ulogd_register_plugin | ( | struct ulogd_plugin * | me | ) |
References get_plugin_infos(), ulogd_plugin::list, ulogd_plugin::name, ULOGD_DEBUG, ulogd_log, ULOGD_NOTICE, and ulogd_plugin::version.
Referenced by __attribute__().
int ulogd_wildcard_inputkeys | ( | struct ulogd_pluginstance * | upi | ) |
References ulogd_pluginstance::id, ulogd_pluginstance::input, ulogd_keyset::keys, ulogd_pluginstance::list, ulogd_pluginstance_stack::list, llist_for_each_entry, ulogd_keyset::num_keys, ulogd_plugin::output, ulogd_pluginstance::output, ulogd_pluginstance::plugin, ulogd_pluginstance::stack, ULOGD_DEBUG, and ulogd_log.