Skip to contentSkip to conversation

qemu_chr_open_tcp: allow ipv4 and ipv6 options

PATCH RESEND Applied Sebastian Herbszt 3 participants 4 messages Jan 26, 2009 – Feb 9, 2009

lore
Share & tools
lore
#0 lore raw

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;
#1 lore raw
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;
#2 lore raw

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

- 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;
#3 lore raw
In reply to Sebastian Herbszt
Quoted 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