[libvirt] [PATCH 1/2] util: add wrapper function to check if address string is an ip