prg_ip_address_subnets_overlap()
Abstract
Returns whether the subnets of two IP addresses overlap.
Syntax
prg_ip_address_subnets_overlap (first_ip_address, second_ip_address)
| Argument | Type | Description |
|---|---|---|
first_ip_address |
PrgT_IP_Address |
the IP address whose subnet is to be compared |
second_ip_address |
PrgT_IP_Address |
the IP address whose subnet is to be compared against |
Return Type
int
Indicates whether or not the two subnets of the IP addresses cover parts of the same address space.
Header
prg_ip_address.h
Details
Returns whether the subnets of two IP addresses overlap. They overlap if, when using the least specific of the two mask, the masked portion of the two address values are equal.