[libvirt] [PATCH-v4 1/2] create virSocketAddrGetIpPrefix utility function