private static boolean checkVersionAtLeast(String current, String minimum) {
        String[] currentSegments = current.split("\\.");
        String[] minimumSegments = minimum.split("\\.");
        int numSegments = Math.min(currentSegments.length, minimumSegments.length);
        for (int i = 0; i < numSegments; ++i) {
            int currentSegment = Integer.parseInt(currentSegments[i]);
            int minimumSegment = Integer.parseInt(minimumSegments[i]);
            if (currentSegment < minimumSegment) {
                return false;
            } else if (currentSegment > minimumSegment) {
                return true;
            }
        }
        return currentSegments.length >= minimumSegments.length;
    }
Used to get the mac address for a given IP address.

@param nif             network device
@param remoteAddress   remote ip address that we want to get the mac address for
@param localAddress    local ip address of the device asking the question
@param localMacAddress local mac address of the device asking the question
@return optional that possibly contains the mac address we were looking for.
plc4j/utils/raw-sockets/src/main/java/org/apache/plc4x/java/utils/rawsockets/netty/utils/ArpUtils.java