[PATCH] to correct UML command line networking parameters

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

 



I have been finding that some UML command line networking parameters are being generated incorrectly. Attached is a patch that corrects the problem.

For more information, see
https://bugzilla.redhat.com/show_bug.cgi?id=706295 .
diff -Naur libvirt-0.9.1.orig/src/uml/uml_conf.c libvirt-0.9.1.new/src/uml/uml_conf.c
--- libvirt-0.9.1.orig/src/uml/uml_conf.c	2011-03-01 01:03:32.000000000 -0600
+++ libvirt-0.9.1.new/src/uml/uml_conf.c	2011-05-27 20:27:26.563772975 -0500
@@ -208,6 +208,11 @@
     case VIR_DOMAIN_NET_TYPE_ETHERNET:
         /* ethNNN=tuntap,tapname,macaddr,gateway */
         virBufferAddLit(&buf, "tuntap");
+        if (def->ifname) {
+            virBufferVSprintf(&buf, ",%s", def->ifname);
+        } else {
+            virBufferAddLit(&buf, ",");
+        }
         if (def->data.ethernet.ipaddr) {
             umlReportError(VIR_ERR_INTERNAL_ERROR, "%s",
                            _("IP address not supported for ethernet inteface"));
--
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]