summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-03-24 10:55:07 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2013-03-29 16:48:11 +0100
commit71e2bf5cf25a821d62f7d75eb8efa4c61a214c6b (patch)
tree541ded6ac91a089184c0ed02c923ebfe214252a3 /extensions
parentbf75fc041b35c75c2c592e01f1906771e00ce4eb (diff)
libxt_osf: fix missing --ttl and --log in save output
closes http://bugzilla.netfilter.org/show_bug.cgi?id=805 Reported-by: Bourne Without <blackhole@airpost.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_osf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/libxt_osf.c b/extensions/libxt_osf.c
index 88274a0e..4e2139a5 100644
--- a/extensions/libxt_osf.c
+++ b/extensions/libxt_osf.c
@@ -93,6 +93,10 @@ static void osf_save(const void *ip, const struct xt_entry_match *match)
const struct xt_osf_info *info = (const struct xt_osf_info*) match->data;
printf(" --genre %s%s", (info->flags & XT_OSF_INVERT) ? "! ": "", info->genre);
+ if (info->flags & XT_OSF_TTL)
+ printf(" --ttl %u", info->ttl);
+ if (info->flags & XT_OSF_LOG)
+ printf(" --log %u", info->loglevel);
}
static struct xtables_match osf_match = {