All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jimmy Hedman <jimmy.hedman@southpole.se>
To: netfilter-devel@lists.netfilter.org
Subject: Patch for ULOG save
Date: 13 Sep 2002 17:21:49 +0200	[thread overview]
Message-ID: <1031930509.1663.8.camel@goofy> (raw)

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

Hi,
i found that ULOG target doesn't get saved right when doing a
iptables-save so i created a small patch for it. The problem was that it
wasn't putting "'s around ulog-prefix arguments.
Patch attached is against 1.2.7a but the cvs tree seem to have the same
problem.

I don't subscribe to the developer mailinglist so if you answer, please
cc: me.

// Jimmy


Patch:
--- extensions/libipt_ULOG.c.old	2002-09-13 17:12:11 +0200
+++ extensions/libipt_ULOG.c	2002-09-13 17:12:34 +0200
@@ -157,7 +157,7 @@
 	    = (const struct ipt_ulog_info *) target->data;
 
 	if (strcmp(loginfo->prefix, "") != 0)
-		printf("--ulog-prefix %s ", loginfo->prefix);
+		printf("--ulog-prefix \"%s\" ", loginfo->prefix);
 
 	if (loginfo->nl_group != ULOG_DEFAULT_NLGROUP) {
 		printf("--ulog-nlgroup ");


-- 
Jimmy Hedman                       South Pole AB
Phone:  +46 8 51420420             Gelbjutarvägen 5
Fax:    +46 8 51420429             SE - 17148 Solna 
e-mail: jimmy.hedman@southpole.se  www.southpole.se

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 445 bytes --]

--- extensions/libipt_ULOG.c.old	2002-09-13 17:12:11.000000000 +0200
+++ extensions/libipt_ULOG.c	2002-09-13 17:12:34.000000000 +0200
@@ -157,7 +157,7 @@
 	    = (const struct ipt_ulog_info *) target->data;
 
 	if (strcmp(loginfo->prefix, "") != 0)
-		printf("--ulog-prefix %s ", loginfo->prefix);
+		printf("--ulog-prefix \"%s\" ", loginfo->prefix);
 
 	if (loginfo->nl_group != ULOG_DEFAULT_NLGROUP) {
 		printf("--ulog-nlgroup ");

             reply	other threads:[~2002-09-13 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13 15:21 Jimmy Hedman [this message]
2002-09-15 11:23 ` Patch for ULOG save Harald Welte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1031930509.1663.8.camel@goofy \
    --to=jimmy.hedman@southpole.se \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.