summaryrefslogtreecommitdiffstats
path: root/extensions/ebt_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/ebt_log.c')
-rw-r--r--extensions/ebt_log.c19
1 files changed, 10 insertions, 9 deletions
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));