All of lore.kernel.org
 help / color / mirror / Atom feed
* Correct iptables-save output of osf module
@ 2006-03-25  4:25 Daniel De Graaf
  2006-03-29  8:55 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel De Graaf @ 2006-03-25  4:25 UTC (permalink / raw)
  To: netfilter-devel

This adds the optional flags for the osf module to the iptables-save output.

- Daniel De Graaf

Index: extensions/libipt_osf.c
===================================================================
--- extensions/libipt_osf.c     (revision 6557)
+++ extensions/libipt_osf.c     (working copy)
@@ -134,6 +134,14 @@
        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 ");
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-29 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-25  4:25 Correct iptables-save output of osf module Daniel De Graaf
2006-03-29  8:55 ` Patrick McHardy
2006-03-29 14:37   ` Daniel De Graaf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.