From: Ian Campbell Subject: Re: [PATCH] libxl: fix guest networking Date: Mon, 17 Jan 2011 17:25:46 +0000 Message-ID: <1295285146.14981.222.camel@zakaz.uk.xensource.com> References: <201101121555.03215.Christoph.Egger@amd.com> <19764.31358.957714.709713@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19764.31358.957714.709713@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Christoph Egger , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2011-01-17 at 17:21 +0000, Ian Jackson wrote: > +static const char *libxl_tapif_script(libxl__gc *gc) > +{ > +#ifdef __linux__ > + return libxl__strdup(gc, "no"); > +#else > + return libxl__sprintf(gc, "%s/qemu-ifup", libxl_xen_script_dir_path()); > +#endif > +} > > I'm really not a fan of #ifdefs in the main parts of the code. > Perhaps we can (in 4.2) create a file where we can dump these kind of > things. IMHO it would be better to switch netbsd to the new model for 4.2. Ian.