From 71e2bf5cf25a821d62f7d75eb8efa4c61a214c6b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 24 Mar 2013 10:55:07 +0100 Subject: libxt_osf: fix missing --ttl and --log in save output closes http://bugzilla.netfilter.org/show_bug.cgi?id=805 Reported-by: Bourne Without Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_osf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extensions/libxt_osf.c') 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 = { -- cgit v1.2.3