Description: calculates the possible minimum and maximum IP of a given netmask. The IPs are returned as an array: index 0 = minimum; index 1 = maximum.
Parameter:
netmask: netmask to use
ip: is used if the can only be set the current part of the ip (max and min ip part == 255)