diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-15 15:53:34 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-15 15:53:34 -0800 |
commit | 2052ef741fd7cda0add48a2c5efd87f8cc4cfef9 (patch) | |
tree | de4fa50ad5e8e19580107530e173810e8a7f3752 | |
parent | e64e39512d6909150cb189c7d59fb72db4216ddb (diff) | |
download | vyatta-cfg-firewall-2052ef741fd7cda0add48a2c5efd87f8cc4cfef9.tar.gz vyatta-cfg-firewall-2052ef741fd7cda0add48a2c5efd87f8cc4cfef9.zip |
Change delete_member_range to use the same subnet prefix.
-rwxr-xr-x | lib/Vyatta/IpTables/IpSet.pm | 2 |
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()); |