Creates an IPv4 address with the network mask that matches the given CIDR value.
IPv4.fromCidr(this.ip, int cidr) : mask = cidrToMask(cidr);