From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KItLe-0002ty-EA for qemu-devel@nongnu.org; Tue, 15 Jul 2008 18:50:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KItLd-0002ta-Na for qemu-devel@nongnu.org; Tue, 15 Jul 2008 18:50:18 -0400 Received: from [199.232.76.173] (port=58970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KItLd-0002tU-IS for qemu-devel@nongnu.org; Tue, 15 Jul 2008 18:50:17 -0400 Received: from qw-out-1920.google.com ([74.125.92.149]:46529) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KItLd-0003er-Jb for qemu-devel@nongnu.org; Tue, 15 Jul 2008 18:50:17 -0400 Received: by qw-out-1920.google.com with SMTP id 5so796935qwf.4 for ; Tue, 15 Jul 2008 15:50:15 -0700 (PDT) Message-ID: <487D29A2.5010306@quinthar.com> Date: Tue, 15 Jul 2008 15:50:10 -0700 From: David Barrett MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Is there a reason -redir binds to INADDR_ANY? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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