Changeset 775


Ignore:
Timestamp:
09/25/15 17:08:32 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Further tweak splitBlock() to handle a contained block the same size as
its container - may be a common case in legacy data. Still leaves more
deeply nested same-sized container trees hanging but those should be
rare enough than manual intervention can patch it up well enough. See #7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r774 r775  
    19831983    }
    19841984
    1985     @processlist = sort { $b->{cidr}->masklen <=> $a->{cidr}->masklen } @processlist;
     1985    # Sort on masklen, crudely break ties by pushing container blocks down the stack.  Multiple-nested containers
     1986    # of the same size are virtually guaranteed to produce strange results, but should be rare enough to not matter
     1987    @processlist = sort { $b->{cidr}->masklen <=> $a->{cidr}->masklen || $a->{type} =~ /^.m$/ } @processlist;
    19861988
    19871989    foreach my $pr (@processlist) {
Note: See TracChangeset for help on using the changeset viewer.