Correct iptables-save output of osf module

Daniel De Graaf danieldegraaf at gmail.com
Sat Mar 25 05:25:39 CET 2006


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 ");
 }


More information about the netfilter-devel mailing list