[libvirt] [PATCH v3 3/3] libvirt/qemu : support attach/detach-interface --persistent with qemu

Hu Tao hutao at cn.fujitsu.com
Fri Feb 25 07:08:19 UTC 2011


> +static int qemuDomainFindNetByName(virDomainDefPtr vmdef,
> +                 const unsigned char *mac)
> +{
> +    virDomainNetDefPtr net;
> +    int i;
> +
> +    for (i = 0; i < vmdef->nnets; i++) {
> +        net = vmdef->nets[i];
> +        /* For now, only MAC can be the key */
> +        if (!strcmp((char*)net->mac, (char*)mac))

ack with STREQ and email address fixed.

-- 
Thanks,
Hu Tao




More information about the libvir-list mailing list