From 18661b0f94f10abe37d1e0716330216db2a8388c Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Tue, 3 Jun 2003 19:16:53 +0000 Subject: module versioning --- extensions/ebt_log.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'extensions/ebt_log.c') diff --git a/extensions/ebt_log.c b/extensions/ebt_log.c index 3c2409f..18ac5dc 100644 --- a/extensions/ebt_log.c +++ b/extensions/ebt_log.c @@ -87,6 +87,7 @@ static void init(struct ebt_entry_watcher *watcher) loginfo->bitmask = 0; loginfo->prefix[0] = '\0'; loginfo->loglevel = LOG_NOTICE; + watcher->version = VERSIONIZE(1,0); } #define OPT_PREFIX 0x01 @@ -176,15 +177,15 @@ static int compare(const struct ebt_entry_watcher *w1, static struct ebt_u_watcher log_watcher = { - EBT_LOG_WATCHER, - sizeof(struct ebt_log_info), - print_help, - init, - parse, - final_check, - print, - compare, - opts + .name = EBT_LOG_WATCHER, + .size = sizeof(struct ebt_log_info), + .help = print_help, + .init = init, + .parse = parse, + .final_check = final_check, + .print = print, + .compare = compare, + .extra_ops = opts, }; static void _init(void) __attribute__ ((constructor)); -- cgit v1.2.3