diff options
Diffstat (limited to 'src/ulogd.c')
-rw-r--r-- | src/ulogd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ulogd.c b/src/ulogd.c index 5eca76a..6c94779 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -40,15 +40,11 @@ * - further unification towards generic network event logging * and support for lnstat * - * 17 Apr 2005 Harald Welte <laforge@gnumonks.org> - * - - * * 07 Oct 2005 Harald Welte <laforge@gnumonks.org> * - finally get ulogd2 into a running state + * */ -#define ULOGD_VERSION "2.00alpha" - #include <unistd.h> #include <stdio.h> #include <stdlib.h> @@ -156,6 +152,11 @@ static struct ulogd_plugin *find_plugin(const char *name) /* the function called by all plugins for registering themselves */ void ulogd_register_plugin(struct ulogd_plugin *me) { + if (strcmp(me->version, ULOGD_VERSION)) { + ulogd_log(ULOGD_NOTICE, "plugin `%s' has incompatible version %s\n", + me->version); + return; + } if (find_plugin(me->name)) { ulogd_log(ULOGD_NOTICE, "plugin `%s' already registered\n", me->name); |