[libvirt] [PATCH] Remove code duplication in domain_addr.c