Skip to content
Kristian Larsson edited this page Jun 5, 2014 · 3 revisions

Prefix FOO is resized to cover more prefixes. We determine number of used addresses by selecting all direct chil dren and suming their size. Direct children is determined by "within prefix FOO and indent = FOO.indent + 1", no w since 1.0.0.0/24 is already a child of FOO it will have FOO.indent+1 while 1.0.2.0/24 which wasn't a child of FOO will have indent = FOO.indent

OLD:
1.0.0.0/16
  1.0.0.0/23        FOO
    1.0.0.0/24      DIRECT CHILD
    1.0.1.0/24      DIRECT CHILD
  1.0.2.0/24
  1.0.3.0/24

NEW:
1.0.0.0/16
  1.0.0.0/22        FOO
    1.0.0.0/24      OLD DIRECT CHILD
    1.0.1.0/24      OLD DIRECT CHILD
    1.0.2.0/24      NEW DIRECT CHILD
    1.0.3.0/24      NEW DIRECT CHILD
Clone this wiki locally