Changeset 883


Ignore:
Timestamp:
06/15/16 16:48:01 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix lurking issue with guided assignment of IPv6; there is a much larger
mask length gap between "layers" resulting in poor performance and
tripping NetAddr::IP->split()'s return count limits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r881 r883  
    706706      if ($cidr->masklen() ne $webvar{maskbits}) {
    707707        my $maskbits = $cidr->masklen();
    708         my @subblocks;
    709708        while ($maskbits++ < $webvar{maskbits}) {
    710           @subblocks = $cidr->split($maskbits);
     709          $cidr = ($cidr->split($maskbits))[0];
    711710        }
    712         $cidr = $subblocks[0];
    713711      }
    714712    } # check for freeblocks assignment or IPDB-controlled assignment
Note: See TracChangeset for help on using the changeset viewer.