Contains determines if one ipAddr is in the same subnet as another.
(other *IPAddr)
| 490 | // Contains determines if one ipAddr is in the same |
| 491 | // subnet as another. |
| 492 | func (ipAddr IPAddr) Contains(other *IPAddr) bool { |
| 493 | return ipAddr.contains(other) && ipAddr.Mask < other.Mask |
| 494 | } |
| 495 | |
| 496 | // ContainedByOrEquals determines if one ipAddr is in the same |
| 497 | // subnet as another or the addresses and subnets are equal. |