Rework find_ip() to work with netmasks

We want the same IP with different (optional) netmask to be found,
i.e. we want to treat addresses 1.2.3.4, 1.2.3.4/16 and 1.2.3.4/32
as the same one.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
2 files changed