From 3fa5861ae1c0f3a7ccaeed05d5497a8cb033819b Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 16 Apr 2005 17:12:50 +0000 Subject: minor cosmetic updates --- conffile/conffile.c | 2 +- include/ulogd/ulogd.h | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/conffile/conffile.c b/conffile/conffile.c index ef7112e..1fdb561 100644 --- a/conffile/conffile.c +++ b/conffile/conffile.c @@ -1,6 +1,6 @@ /* config file parser functions * - * (C) 2000-2004 by Harald Welte + * (C) 2000-2005 by Harald Welte * * $Id$ * diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index 7c3aa15..f850160 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -1,11 +1,11 @@ #ifndef _ULOGD_H #define _ULOGD_H -/* ulogd, Version $Revision: 1.16 $ +/* ulogd, Version $Revision$ * * userspace logging daemon for netfilter ULOG target * of the linux 2.4 netfilter subsystem. * - * (C) 2000 by Harald Welte + * (C) 2000-2005 by Harald Welte * * this code is released under the terms of GNU GPL * @@ -60,11 +60,12 @@ extern FILE *logfile; +/* ulogd data type */ enum ulogd_dtype { ULOGD_DTYPE_NULL, - ULOGD_DTYPE_RAW, - ULOGD_DTYPE_PACKET, - ULOGD_DTYPE_FLOW, + ULOGD_DTYPE_RAW, /* raw packet data */ + ULOGD_DTYPE_PACKET, /* packet metadata */ + ULOGD_DTYPE_FLOW, /* flow metadata */ }; /* structure describing an input / output parameter of a plugin */ @@ -113,7 +114,7 @@ struct ulogd_plugin { struct { /* possible input keys of this interpreter */ struct ulogd_key *keys; - /* number of keys this interpreter has */ + /* number of input keys */ unsigned int num_keys; /* type */ enum ulogd_dtype type; @@ -129,12 +130,14 @@ struct ulogd_plugin { /* function to call for each packet */ int (*interp)(struct ulogd_pluginstance *instance); + /* function to construct a new pluginstance */ struct ulogd_pluginstance *(*constructor)(struct ulogd_plugin *pl); /* function to destruct an existing pluginstance */ int (*destructor)(struct ulogd_pluginstance *instance); + /* configuration parameters */ - struct config_keyest config_kset; + struct config_keyset config_kset; }; /* an instance of a plugin, element in a stack */ -- cgit v1.2.3