| Description: |
::ip::reduceToAggregates returns an invalid result (i.e., a result that is not functionally the same as its input) when the netmask "255.255.0.255" is used in conjuction with disjoint, but still overlapping subnets.
Example:
tcl>package require ip
1.1.1
tcl>set iplist [list 1.2.0.4/255.255.0.255 1.2.3.0/255.255.255.0]
tcl>set reducediplist [::ip::reduceToAggregates $iplist]
tcl>puts $reducediplist
1.2.0.4/16
tcl>::ip::isOverlap 1.2.1.1/32 [lindex $iplist 0]
0
tcl>::ip::isOverlap 1.2.1.1/32 [lindex $iplist 1]
0
tcl>::ip::isOverlap 1.2.1.1/32 [lindex $reducediplist 0]
1
|