[6584] qemu_chr_open_tcp: allow ipv4 and ipv6 options
Revision: 6584
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6584 Author: aurel32 Date: 2009-02-09 20:09:29 +0000 (Mon, 09 Feb 2009)
Log Message:
-----------qemu_chr_open_tcp: allow ipv4 and ipv6 options
Those new options are parsed in qemu-sockets.c. Allow them instead of printing "Unknown option".
Signed-off-by Sebastian Herbszt <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/qemu-char.c
Modified: trunk/qemu-char.c
===================================================================
qemu-char.c +4 -0
@@ -1992,6 +1992,10 @@ do_nodelay =1 ; }else if (!strncmp (ptr,"to=" ,3 )) {/* nothing, inet_listen() parses this one */ ; + }else if (!strncmp (ptr,"ipv4" ,4 )) { +/* nothing, inet_connect() and inet_listen() parse this one */ ; + }else if (!strncmp (ptr,"ipv6" ,4 )) { +/* nothing, inet_connect() and inet_listen() parse this one */ ; }else {printf ("Unknown option: %s\n" , ptr); goto fail;