return match->u.match_size;
}
-static unsigned int __add_target(const char *name, ip6t_entry_target_t *start, size_t size, void *data)
+static unsigned int __add_target(const char *name, ip6t_entry_target_t *start,
+ int revision, size_t size, void *data)
{
ip6t_entry_target_t *target = start;
g_strlcpy(target->u.user.name, name, XT_EXTENSION_MAXNAMELEN);
memcpy(target->data, data, size);
+ target->u.user.revision = revision;
return target->u.target_size;
}
log.level = level;
g_strlcpy(log.prefix, prefix, 30);
/* target_log */
- return __add_target(IP6TC_LOG, start, sizeof(ip6t_log_info_t), &log);
+ return __add_target(IP6TC_LOG, start, 0, sizeof(ip6t_log_info_t), &log);
}
static unsigned int __add_nflog_target(unsigned int group, const char *prefix,
nflog.len = range;
nflog.threshold = threshold;
/* target_nflog */
- return __add_target(IP6TC_NFLOG, start, sizeof(ip6t_nflog_info_t), &nflog);
+ return __add_target(IP6TC_NFLOG, start, 0, sizeof(ip6t_nflog_info_t), &nflog);
}
static int __create_entry_data(unsigned char *entry, unsigned char *mask,
return match->u.match_size;
}
-static unsigned int __add_target(const char *name, ipt_entry_target_t *start, size_t size, void *data)
+static unsigned int __add_target(const char *name, ipt_entry_target_t *start,
+ int revision, size_t size, void *data)
{
ipt_entry_target_t *target = start;
g_strlcpy(target->u.user.name, name, XT_EXTENSION_MAXNAMELEN);
memcpy(target->data, data, size);
+ target->u.user.revision = revision;
return target->u.target_size;
}
log.level = level;
g_strlcpy(log.prefix, prefix, 30);
/* target_log */
- return __add_target(IPTC_LOG, start, sizeof(ipt_log_info_t), &log);
+ return __add_target(IPTC_LOG, start, 0, sizeof(ipt_log_info_t), &log);
}
static unsigned int __add_nflog_target(unsigned int group, const char *prefix,
nflog.len = range;
nflog.threshold = threshold;
/* target_nflog */
- return __add_target(IPTC_NFLOG, start, sizeof(ipt_nflog_info_t), &nflog);
+ return __add_target(IPTC_NFLOG, start, 0, sizeof(ipt_nflog_info_t), &nflog);
}
static int __create_entry_data(unsigned char *entry, unsigned char *mask,