Fixes #1

Adds integer casting around the IP in CIDR check in
attempt_to_reallocate_ip.