qemu_chr_open_tcp: allow ipv4 and ipv6 options
PATCH RESEND 1/1 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".
- Sebastian
qemu-char.c Sat Dec 27 16:54:23 2008 renamed from qemu-char.c.orig Sat Dec 27 15:55:48 2008 +4 -0
@@ -2035,6 +2035,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;
Quoted 1 line · Sebastian Herbszt
Those new options are parsed in
qemu-sockets.c. Allow them instead of printing "Unknown option".
Needs a Signed-off-by line.
Regards,
Anthony Liguori
Quoted 21 lines
- Sebastian
qemu-char.c Sat Dec 27 16:54:23 2008 renamed from qemu-char.c.orig Sat Dec 27 15:55:48 2008 +4
-0@@ -2035,6 +2035,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;
[Qemu-devel] Re: [RESEND][PATCH] qemu_chr_open_tcp: allow ipv4 andipv6 options
Quoted 4 lines · Anthony Liguori
Quoted 1 line · Sebastian Herbszt
Those new options are parsed in
qemu-sockets.c. Allow them instead of printing "Unknown option".Needs a Signed-off-by line.
Signed-off-by Sebastian Herbszt <[email protected]>
- Sebastian
Quoted 29 lines
Regards,
Anthony Liguori
Quoted 21 lines
- Sebastian
qemu-char.c Sat Dec 27 16:54:23 2008 renamed from qemu-char.c.orig Sat Dec 27 15:55:48 2008 +4
-0@@ -2035,6 +2035,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;
Aurelien Jarno
AppliedQuoted 3 lines · Sebastian Herbszt
Those new options are parsed in
qemu-sockets.c. Allow them instead of printing "Unknown option".- Sebastian
Thanks, applied.
Quoted 17 lines
qemu-char.c Sat Dec 27 16:54:23 2008 renamed from qemu-char.c.orig Sat Dec 27 15:55:48 2008 +4
-0@@ -2035,6 +2035,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;
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net