]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Correct iptables-save output of osf module (Daniel De Graaf)
authorDaniel De Graaf <danieldegraaf@gmail.com>
Fri, 31 Mar 2006 01:31:29 +0000 (01:31 +0000)
committerPatrick McHardy <kaber@trash.net>
Fri, 31 Mar 2006 01:31:29 +0000 (01:31 +0000)
extensions/libipt_osf.c

index 6747404658928d0356012846e3f4d20616bd0ec1..a2edb85a92198bb68aac30b422c6931bd9929712 100644 (file)
@@ -134,6 +134,14 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
        const struct ipt_osf_info *info = (const struct ipt_osf_info*) match->data;
 
        printf("--genre %s%s ", (info->invert) ? "! ": "", info->genre);
+       if (info->flags & IPT_OSF_SMART)
+               printf("--smart ");
+       if (info->flags & IPT_OSF_LOG)
+               printf("--log %d ", info->loglevel);
+       if (info->flags & IPT_OSF_NETLINK)
+               printf("--netlink ");
+       if (info->flags & IPT_OSF_CONNECTOR)
+               printf("--connector ");
 }