From 58ee76c3d9db7c2b12f8b504415917afdd6abec0 Mon Sep 17 00:00:00 2001 From: laforge Date: Thu, 16 Nov 2000 21:15:29 +0000 Subject: - new syslog emulation output target - lot of bugfixes --- ulogd/include/ulogd/ulogd.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'ulogd/include') diff --git a/ulogd/include/ulogd/ulogd.h b/ulogd/include/ulogd/ulogd.h index 883cf10..186de9e 100644 --- a/ulogd/include/ulogd/ulogd.h +++ b/ulogd/include/ulogd/ulogd.h @@ -1,6 +1,6 @@ #ifndef _ULOGD_H #define _ULOGD_H -/* ulogd, Version $Revision: 1.7 $ +/* ulogd, Version $Revision: 1.8 $ * * first try of a logging daemon for my netfilter ULOG target * for the linux 2.4 netfilter subsystem. @@ -9,7 +9,7 @@ * * this code is released under the terms of GNU GPL * - * $Id: ulogd.h,v 1.7 2000/09/12 14:29:37 laforge Exp $ + * $Id: ulogd.h,v 1.8 2000/11/16 17:20:52 laforge Exp $ */ #include @@ -131,4 +131,22 @@ void ulogd_log(int level, const char *message, ...); /* get an interpreter hash id by name */ unsigned int interh_getid(const char *name); +/* get a key id if you have the name */ +unsigned int keyh_getid(const char *name); + +/* get a result for a given key id */ +ulog_iret_t *keyh_getres(unsigned int id); + +/* the key hash itself */ +struct ulogd_keyh_entry ulogd_keyh[100]; + +/* entries of the key hash */ +struct ulogd_keyh_entry { + ulog_interpreter_t *interp; /* interpreter for this key */ + unsigned int offset; /* offset within interpreter */ + const char *name; /* name of this particular key */ +}; + + + #endif -- cgit v1.2.3