qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Is there a reason -redir binds to INADDR_ANY?
@ 2008-07-15 22:50 David Barrett
  0 siblings, 0 replies; only message in thread
From: David Barrett @ 2008-07-15 22:50 UTC (permalink / raw)
  To: qemu-devel

I'm using qemu on a server with multiple ips/interfaces and I'd like to 
use -redir to bind a specific host ip:port to a specific guest ip:port. 
  However, -redir doesn't allow specifying a host ip, and instead just 
binds to INADDR_ANY on the host system.  (in slirp/socket.c/solisten())

Is there a particular reason for this limitation?  Is there any interest 
in a patch to allow specific host interface binding?

It seems a straightforward change, through the most obvious choice for a 
new -redir syntax might create backwards compatibility problems.  It's 
currently:

	-redir [tcp|udp]:host-port:[guest-host]:guest-port

And the most obvious change would be something like:

	-redir [tcp|udp]:[host-host]:host-port:[guest-host]:guest-port

Granted, the parser could choose the first syntax if only three colons 
are found, and the second if four are found... but that's not very pretty.

Incidentally, is there a rough timeline or estimate for the next formal 
release of qemu?  I'm not super eager to deviate from the mainline for 
long, nor adopt unstable code prematurely.

Thanks!

-david

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-15 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 22:50 [Qemu-devel] Is there a reason -redir binds to INADDR_ANY? David Barrett

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).