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

* Re: Correct iptables-save output of osf module
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2006-03-29  8:55 UTC (permalink / raw)
  To: Daniel De Graaf; +Cc: netfilter-devel

Daniel De Graaf wrote:
> This adds the optional flags for the osf module to the iptables-save output.

Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
Content-Disposition: inline

I can't apply this since my mail client saves it base64 encoded. Please
resend as plain text.

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

* Re: Correct iptables-save output of osf module
  2006-03-29  8:55 ` Patrick McHardy
@ 2006-03-29 14:37   ` Daniel De Graaf
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel De Graaf @ 2006-03-29 14:37 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

Patrick McHardy wrote:
> Daniel De Graaf wrote:
>   
>> This adds the optional flags for the osf module to the iptables-save output.
>>     
>
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: base64
> Content-Disposition: inline
>
> I can't apply this since my mail client saves it base64 encoded. Please
> resend as plain text.
>   

Sorry, I'll use a real mail client to send patches from now on. Here's
the patch again:

Index: extensions/libipt_osf.c
===================================================================
--- extensions/libipt_osf.c     (revision 6560)
+++ 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 ");
 }




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ 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.