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

[libvirt] [PATCH] to correct UML command line networking parameters



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"));

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