[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] add missing options in socket_optslist
From: |
James Harper |
Subject: |
[Qemu-devel] [PATCH] add missing options in socket_optslist |
Date: |
Fri, 5 Dec 2014 11:48:31 +0000 |
chardev of type udp allows for specifying of localport and localaddr, but these
options are missing in qemu-sockets.c and so an error is reported from
socket_dgram when qemu_opt_set() is called against those options.
Tested and now correctly allows for setting local address and port of udp
connection. Haven't tested if this breaks any other type of socket.
Signed-off-by: James Harper <address@hidden>
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index a76bb3c..e121a34 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -45,6 +45,12 @@ QemuOptsList socket_optslist = {
.name = "port",
.type = QEMU_OPT_STRING,
},{
+ .name = "localaddr",
+ .type = QEMU_OPT_STRING,
+ },{
+ .name = "localport",
+ .type = QEMU_OPT_STRING,
+ },{
.name = "to",
.type = QEMU_OPT_NUMBER,
},{
_____________________________________
James Harper - Systems Technician
Maxsum Solutions
Bendigo: (03) 4433 9200 Melbourne: (03) 9098 0000
Email: address@hidden
This email is intended only for the use of the addressee. You must not edit
this email or any attachments without my express consent. Maxsum Solutions is
not liable for any failed, corrupted or incomplete transmission of this email
or any attachments or for any viruses contained in them. By opening any
attachments, you accept full responsibility for the consequences. If you are
not the intended recipient, any dissemination, reliance upon or copying of this
email or any attachments is strictly prohibited, and you must immediately erase
them permanently from your system, notify Maxsum Solutions and destroy any hard
copies.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] add missing options in socket_optslist,
James Harper <=