Commit 84694dd280622424607cb2241d90b3d7b0d2393b

Authored by aurel32
1 parent ee8ae9e4

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 <herbszt@gmx.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6584 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
qemu-char.c
... ... @@ -1992,6 +1992,10 @@ static CharDriverState *qemu_chr_open_tcp(const char *host_str,
1992 1992 do_nodelay = 1;
1993 1993 } else if (!strncmp(ptr,"to=",3)) {
1994 1994 /* nothing, inet_listen() parses this one */;
  1995 + } else if (!strncmp(ptr,"ipv4",4)) {
  1996 + /* nothing, inet_connect() and inet_listen() parse this one */;
  1997 + } else if (!strncmp(ptr,"ipv6",4)) {
  1998 + /* nothing, inet_connect() and inet_listen() parse this one */;
1995 1999 } else {
1996 2000 printf("Unknown option: %s\n", ptr);
1997 2001 goto fail;
... ...