public class IPAddressHelper extends Object
Constructor and Description |
---|
IPAddressHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isWithinAddressSpace(byte[] ipBytes,
byte[] ipAddressWithNetmask)
Tests whether the ipAddress is within the address space defined by
the ipAddressWithNetmask.
|
public static boolean isWithinAddressSpace(byte[] ipBytes, byte[] ipAddressWithNetmask)
ipBytes
- The IP address bytes to compare against the address
space.ipAddressWithNetmask
- The 8 (IPv4) or 32 (IPv6) byte array containing in the
first half the base IP address bytes and in the second
half the netmask bytes.Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.