#include <libipulog/libipulog.h>
#include <stdio.h>
#include <signal.h>
|
#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) |
|
#define ULOGD_DEBUG 1 /* debugging information */ |
#define ULOGD_ERROR 7 /* error condition, requires user action */ |
#define ULOGD_FATAL 8 /* fatal, program aborted */ |
Referenced by _init(), append_create_outfile(), build_template_for_bitmask(), config_parse_file(), config_register_file(), keyh_getname(), keyh_getres(), main(), printpkt_init(), register_interpreter(), register_output(), ulogd_db_configure(), ulogd_db_signal(), ulogd_db_start(), ulogd_key_size(), ulogd_parse_addr(), ulogd_propagate_results(), ulogd_register_plugin(), and ulogd_wildcard_inputkeys().
#define ULOGD_MAX_KEYLEN 32 |
#define ULOGD_NOTICE 5 /* abnormal/unexpected condition */ |
#define ULOGD_RET_BOOL 0x0050 |
#define ULOGD_RET_INT16 0x0002 |
#define ULOGD_RET_INT32 0x0003 |
#define ULOGD_RET_INT64 0x0004 |
#define ULOGD_RET_INT8 0x0001 |
#define ULOGD_RET_IPADDR 0x0100 |
#define ULOGD_RET_NONE 0x0000 |
#define ULOGD_RET_RAW 0x8030 |
#define ULOGD_RET_STRING 0x8020 |
#define ULOGD_RET_UINT16 0x0012 |
#define ULOGD_RET_UINT32 0x0013 |
#define ULOGD_RET_UINT64 0x0014 |
#define ULOGD_RET_UINT8 0x0011 |
#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 */ |
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 | ) |
|
References ulog_iret::key, ulog_interpreter::key_num, ulog_interpreter::name, ulog_iret::next, ulog_interpreter::next, ulog_interpreter::result, ULOGD_ERROR, ULOGD_INFO, ulogd_log, and ULOGD_NOTICE.
Referenced by _base_reg_ip(), and _local_reg_ip().