]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_osf: fix missing --ttl and --log in save output
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 24 Mar 2013 09:55:07 +0000 (10:55 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 29 Mar 2013 15:48:11 +0000 (16:48 +0100)
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>
extensions/libxt_osf.c

index 88274a0eb84495ecffba10a8fed84913dc6dd034..4e2139a50d71ab5ee12c6735a26b97b1df62785c 100644 (file)
@@ -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 = {