From a52b8fe72b86f954f62eed5d1f6e27c83544a4b6 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 31 Mar 2006 01:31:29 +0000 Subject: Correct iptables-save output of osf module (Daniel De Graaf) --- extensions/libipt_osf.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extensions') diff --git a/extensions/libipt_osf.c b/extensions/libipt_osf.c index 67474046..a2edb85a 100644 --- a/extensions/libipt_osf.c +++ b/extensions/libipt_osf.c @@ -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 "); } -- cgit v1.2.3