From 79e0e62e78ea51eea1f509c5f376c0596ab1f94f Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Tue, 25 Sep 2018 17:37:24 +0800 Subject: [PATCH] qemu: Remove network type limitation for qemuARPGetInterfaces Let's ignore the checking of interface type when we call the function qemuARPGetInterfaces to get IP from host's arp table. Signed-off-by: Lin Ma Reviewed-by: Chen Hanxiao --- src/qemu/qemu_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 126c783a0f..b238309852 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -20932,9 +20932,6 @@ qemuARPGetInterfaces(virDomainObjPtr vm, goto cleanup; for (i = 0; i < vm->def->nnets; i++) { - if (vm->def->nets[i]->type != VIR_DOMAIN_NET_TYPE_NETWORK) - continue; - virMacAddrFormat(&(vm->def->nets[i]->mac), macaddr); for (j = 0; j < table->n; j++) { virArpTableEntry entry = table->t[j];