qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] slirp: fix guestfwd id
@ 2011-06-04  5:25 Alexander Graf
  2011-06-07 13:55 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Graf @ 2011-06-04  5:25 UTC (permalink / raw)
  To: qemu-devel@nongnu.org Developers; +Cc: qemu-trivial

When using -net user,guestfwd=... Qemu immediately complains about the id
being in invalid format. This is because we pass in an id that contains a
colon, while the id restrictions don't allow colons.

This patch changes the colon into a dot, making guestfwd work again.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 net/slirp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/slirp.c b/net/slirp.c
index e387a11..e057a14 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -614,7 +614,7 @@ static int slirp_guestfwd(SlirpState *s, const char *config_str,
     }
 
     fwd = qemu_malloc(sizeof(struct GuestFwd));
-    snprintf(buf, sizeof(buf), "guestfwd.tcp:%d", port);
+    snprintf(buf, sizeof(buf), "guestfwd.tcp.%d", port);
     fwd->hd = qemu_chr_open(buf, p, NULL);
     if (!fwd->hd) {
         error_report("could not open guest forwarding device '%s'", buf);
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] slirp: fix guestfwd id
  2011-06-04  5:25 [Qemu-devel] [PATCH] slirp: fix guestfwd id Alexander Graf
@ 2011-06-07 13:55 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2011-06-07 13:55 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-trivial, qemu-devel@nongnu.org Developers

On Sat, Jun 04, 2011 at 07:25:59AM +0200, Alexander Graf wrote:
> When using -net user,guestfwd=... Qemu immediately complains about the id
> being in invalid format. This is because we pass in an id that contains a
> colon, while the id restrictions don't allow colons.
> 
> This patch changes the colon into a dot, making guestfwd work again.
> 
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
>  net/slirp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches

Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-07 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-04  5:25 [Qemu-devel] [PATCH] slirp: fix guestfwd id Alexander Graf
2011-06-07 13:55 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).