Changeset 8188 in genesis for nodes/getrange.py
- Timestamp:
- Jul 21, 2010, 2:34:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/getrange.py
r7972 r8188 54 54 mask = int(mask) 55 55 addr = addr & ~((1 << (32 - mask)) - 1) 56 bezet[addr] = 1 56 for i in range(0, (1 << (32 - mask))): 57 bezet[addr + i] = 1 57 58 except ValueError, e: 58 59 print "[FOUT] in bestand '%s' regel '%i': %s" % (fname, lineNr, l) … … 63 64 i = k 64 65 65 66 66 i = 0xac100300 67 67 if not interlink: 68 68 i = 0xac110000 69 while bezet.has_key(i): 70 i = i + numaddrs 69 while 1: 70 while bezet.has_key(i): 71 i = i + numaddrs 72 okay = 1 73 for j in range(numaddrs): 74 if bezet.has_key(i + j): 75 i = i + numaddrs 76 okay = 0 77 break 78 if okay: 79 break 71 80 72 81 print "%s/%d:" % (showaddr(i), size),
Note:
See TracChangeset
for help on using the changeset viewer.