ixIsOverlappingIpAddress
ixIsOverlappingIpAddress - compares two IP ranges for overlap
SYNOPSIS
ixIsOverlappingIpAddress ipAddress1 count1 ipAddress2 count2
DESCRIPTION
This command compares two IP ranges to determine whether they overlap.
ARGUMENTS
ipAddress1
The first IP address to be compared.
count1
The number of IP addresses in the first range.
ipAddress2
The second IP address to be compared.
count2
The number of IP addresses in the second range.
RETURNS
0
The ranges do not overlap.
1
The ranges overlap.
EXAMPLES
package require IxTclHal
set addr1 192.168.1.1
set addr1Num 300
set addr2 192.168.2.1
set addr2Num 20
if [ixIsOverlappingIpAddress $addr1 $addr1Num $addr2 $addr2Num] {
ixPuts "Address ranges overlap"
}