All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch for ULOG save
@ 2002-09-13 15:21 Jimmy Hedman
  2002-09-15 11:23 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Jimmy Hedman @ 2002-09-13 15:21 UTC (permalink / raw)
  To: netfilter-devel

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

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

end of thread, other threads:[~2002-09-15 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13 15:21 Patch for ULOG save Jimmy Hedman
2002-09-15 11:23 ` Harald Welte

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.