summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@io.vyatta.com>2009-02-15 15:53:34 -0800
committerStig Thormodsrud <stig@io.vyatta.com>2009-02-15 15:53:34 -0800
commit2052ef741fd7cda0add48a2c5efd87f8cc4cfef9 (patch)
treede4fa50ad5e8e19580107530e173810e8a7f3752
parente64e39512d6909150cb189c7d59fb72db4216ddb (diff)
downloadvyatta-cfg-firewall-2052ef741fd7cda0add48a2c5efd87f8cc4cfef9.tar.gz
vyatta-cfg-firewall-2052ef741fd7cda0add48a2c5efd87f8cc4cfef9.zip
Change delete_member_range to use the same subnet prefix.
-rwxr-xr-xlib/Vyatta/IpTables/IpSet.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/IpTables/IpSet.pm b/lib/Vyatta/IpTables/IpSet.pm
index ec03430..df75cd3 100755
--- a/lib/Vyatta/IpTables/IpSet.pm
+++ b/lib/Vyatta/IpTables/IpSet.pm
@@ -302,7 +302,7 @@ sub delete_member_range {
return $rc if defined $rc;
}
} elsif ($self->{_type} eq 'address') {
- my $start_ip = new NetAddr::IP("$start/8");
+ my $start_ip = new NetAddr::IP("$start/16");
my $stop_ip = new NetAddr::IP($stop);
for (; $start_ip <= $stop_ip; $start_ip++) {
my $rc = $self->delete_member($start_ip->addr());