Skip Menu |

This queue is for tickets about the IPTables-IPv4 CPAN distribution.

Report information
The Basics
Id: 7310
Status: resolved
Priority: 0/
Queue: IPTables-IPv4

People
Owner: Nobody in particular
Requestors: spam [...] der-pepe.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.98
Fixed in: (no value)



Subject: delete_entry modifies its arguments in a strange way
The following perl script [code] use strict; use warnings; use IPTables::IPv4; use Data::Dumper; my $rule = { protocol => "tcp", source => "127.0.0.1", pcnt => 0, "destination-port" => "www:ircd", jump => "ACCEPT", bcnt => "0" }; my $table = IPTables::IPv4::init("filter"); $table->delete_entry("INPUT", $rule); print Dumper($rule); [/code] outputs: [code] $VAR1 = { 'source' => '127.0.0.1', 'protocol' => 'tcp', 'pcnt' => 0, 'destination-port' => ':ww:ircd', 'jump' => 'ACCEPT', 'bcnt' => '0' }; [/code] Note that the destination-port value is broken. This was reproducible each time I tried, regardless whether a matching rule exists or not. I suggest that delete_entry should be modified in a way that it does not touch its arguments. Thank you, Christoph Bussenius (My system is Linux 2.6.3-gentoo-r1, perl v5.8.4 built for i686-linux-thread-multi)
Ok, this does happen in 0.98; however current CVS (http://sourceforge.net/projects/iptperl/) does not exhibit this bug. Please try it. I'll look into releasing the current CVS tree soon; however there was some retooling in a local tree that I wanted to finish, and I'm not sure if I'll release before or after I do that. -- Derrik Pates dpates@dsdk12.net