*/
/* create dnsmasq config file appropriate for this network */
+
+ /* Don't forget to update networkxml2conftest :-) */
virBufferAsprintf(&configbuf,
"##WARNING: THIS IS AN AUTO-GENERATED FILE. "
"CHANGES TO IT ARE LIKELY TO BE\n"
if (dctx == NULL)
goto fail;
- if (networkDnsmasqConfContents(obj, pidfile, &actual,
- dctx, caps) < 0)
+ if (networkDnsmasqConfContents(obj, pidfile, &actual, dctx, caps) < 0)
goto fail;
+ /* Any changes to this function ^^ should be reflected here too. */
+#ifndef __linux__
+ char * tmp;
+
+ if (!(tmp = virStringReplace(actual,
+ "except-interface=lo0\n",
+ "except-interface=lo\n")))
+ goto fail;
+ VIR_FREE(actual);
+ actual = tmp;
+ tmp = NULL;
+#endif
+
if (virTestCompareToFile(actual, outconf) < 0)
goto fail;