All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel]  [PATCH] Do not redefine DEFAULT_NETWORK_{, DOWN_}SCRIPT
Date: Thu, 12 Jun 2008 13:40:07 -0500	[thread overview]
Message-ID: <48516D87.4030407@codemonkey.ws> (raw)
In-Reply-To: <18513.23522.456324.983289@mariner.uk.xensource.com>

Ian Jackson wrote:
> With this change it is possible to change the default network script
> with a change to CPPFLAGS or a suitable config.h, for example
>   -DDEFAULT_NETWORK_SCRIPT='"/path/to/some/script/of/mine/ifup"' \
>   -DDEFAULT_NETWORK_DOWN_SCRIPT='"/path/to/some/script/of/mine/ifdown"'
>   

This is a good idea, but I think it should be something that is 
specified in ./configure.

Regards,

Anthony Liguori

> My patch assumes that you'll want to override both defaults, or
> neither.
>
> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> ---
>  vl.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index f1d92c1..229b536 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -131,8 +131,10 @@ int inet_aton(const char *cp, struct in_addr *ia);
>  
>  #include "exec-all.h"
>  
> +#ifndef DEFAULT_NETWORK_SCRIPT
>  #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
>  #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
> +#endif
>  #ifdef __sun__
>  #define SMBD_COMMAND "/usr/sfw/sbin/smbd"
>  #else
>   

  reply	other threads:[~2008-06-12 18:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12 17:24 [Qemu-devel] [PATCH] Do not redefine DEFAULT_NETWORK_{, DOWN_}SCRIPT Ian Jackson
2008-06-12 18:40 ` Anthony Liguori [this message]
2008-06-13  9:27   ` Ian Jackson
2008-06-13 11:24   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48516D87.4030407@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.