Skip to contentSkip to conversation

[6584] qemu_chr_open_tcp: allow ipv4 and ipv6 options

Qemu-devel Aurelien Jarno 1 participant 1 message Feb 9, 2009

lore
Share & tools
lore
#0 lore raw

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

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;