All of lore.kernel.org
 help / color / mirror / Atom feed
* rename-chain option broken in 1.3.6
@ 2006-11-09  4:51 Laurence J. Lane
  2006-11-09  7:51 ` Krzysztof Oledzki
  0 siblings, 1 reply; 3+ messages in thread
From: Laurence J. Lane @ 2006-11-09  4:51 UTC (permalink / raw)
  To: netfilter-devel

Hi,

--rename-chain (-E) appears to be broken in iptables 1.3.6. Reverting
r6584 and r6584 doesn't appear to affect it.

  # iptables -N foo
  # iptables --rename-chain foo bar
  iptables v1.3.6: You need to supply the `-s' option for this command

  Try `iptables -h' or 'iptables --help' for more information.

(bugzilla appears to have a mysql server problem at the moment. I
can't see if this is already reported.)

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

* Re: rename-chain option broken in 1.3.6
  2006-11-09  4:51 rename-chain option broken in 1.3.6 Laurence J. Lane
@ 2006-11-09  7:51 ` Krzysztof Oledzki
  2006-11-14  7:10   ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Oledzki @ 2006-11-09  7:51 UTC (permalink / raw)
  To: Laurence J. Lane; +Cc: netfilter-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1929 bytes --]



On Wed, 8 Nov 2006, Laurence J. Lane wrote:

> Hi,
Hi,

> --rename-chain (-E) appears to be broken in iptables 1.3.6. Reverting
> r6584 and r6584 doesn't appear to affect it.
>
> # iptables -N foo
> # iptables --rename-chain foo bar
> iptables v1.3.6: You need to supply the `-s' option for this command
>
> Try `iptables -h' or 'iptables --help' for more information.
>
> (bugzilla appears to have a mysql server problem at the moment. I
> can't see if this is already reported.)

Interesting problem... ;) How about attached (and inlined) patch?

[PATCH] Fix -E (rename) in iptables/ip6tables

Remove ununsed CHECK entry in commands_v_options.

It makes -E (rename) working again - generic_opt_check
expects options for RENAME not for CHECK at that table index.

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>

diff -Nur iptables-1.3.6-orig/ip6tables.c iptables-1.3.6/ip6tables.c
--- iptables-1.3.6-orig/ip6tables.c	2006-09-28 18:40:36.000000000 +0200
+++ iptables-1.3.6/ip6tables.c	2006-11-09 08:37:46.000000000 +0100
@@ -170,7 +170,6 @@
  /*NEW_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x'},
  /*DEL_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x'},
  /*SET_POLICY*/{'x','x','x','x','x',' ','x','x','x','x','x'},
-/*CHECK*/     {'x','+','+','+','x',' ','x',' ',' ','x','x'},
  /*RENAME*/    {'x','x','x','x','x',' ','x','x','x','x','x'}
  };

diff -Nur iptables-1.3.6-orig/iptables.c iptables-1.3.6/iptables.c
--- iptables-1.3.6-orig/iptables.c	2006-09-28 18:40:36.000000000 +0200
+++ iptables-1.3.6/iptables.c	2006-11-09 08:37:58.000000000 +0100
@@ -171,7 +171,6 @@
  /*NEW_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x','x'},
  /*DEL_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x','x'},
  /*SET_POLICY*/{'x','x','x','x','x',' ','x','x','x','x','x','x'},
-/*CHECK*/     {'x','+','+','+','x',' ','x',' ',' ',' ','x','x'},
  /*RENAME*/    {'x','x','x','x','x',' ','x','x','x','x','x','x'}
  };

[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 444 bytes --]

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

* Re: rename-chain option broken in 1.3.6
  2006-11-09  7:51 ` Krzysztof Oledzki
@ 2006-11-14  7:10   ` Patrick McHardy
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2006-11-14  7:10 UTC (permalink / raw)
  To: Krzysztof Oledzki; +Cc: Laurence J. Lane, netfilter-devel

Krzysztof Oledzki wrote:
> [PATCH] Fix -E (rename) in iptables/ip6tables
> 
> Remove ununsed CHECK entry in commands_v_options.

Applied, thanks Krzysztof.

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

end of thread, other threads:[~2006-11-14  7:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09  4:51 rename-chain option broken in 1.3.6 Laurence J. Lane
2006-11-09  7:51 ` Krzysztof Oledzki
2006-11-14  7:10   ` Patrick McHardy

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.