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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]