ip_pool: properly handle VS ips with masks, keep code DRY