from common import * nodes = xml_to_obj_hierarchy(sys.argv[1]) ready_nodes_dtd_hierarchy(nodes) min = 0xffffffffL bezet = {} for node in nodes.nodes: for link in node.links: if link.ip < min: min = link.ip bezet[link.ip] = 1 i = min + 4 while bezet.has_key(i) or bezet.has_key(i + 1): i = i + 4 print "%s/30: %s en %s" % (showaddr(i - 1), showaddr(i), showaddr(i + 1))