[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 2/9] qapi: add socket address types
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH v2 2/9] qapi: add socket address types |
Date: |
Mon, 1 Oct 2012 16:52:17 +0200 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
qapi-schema.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file modificato, 53 inserzioni(+)
diff --git a/qapi-schema.json b/qapi-schema.json
index 191d921..b443a99 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -2367,6 +2367,59 @@
'opts': 'NetClientOptions' } }
##
+# @IPSocketAddress
+#
+# Captures a range of possible destination addresses for an IP socket
+#
+# @host: host part of the address
+#
+# @port: port part of the address, or lowest port if @to is present
+#
+# @to: highest port to try
+#
+# @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6
+# #optional
+#
+# @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6
+# #optional
+#
+# Since 1.3
+##
+{ 'type': 'IPSocketAddress',
+ 'data': {
+ 'host': 'str',
+ 'port': 'str',
+ '*to': 'uint16',
+ '*ipv4': 'bool',
+ '*ipv6': 'bool' } }
+
+##
+# @UnixSocketAddress
+#
+# Captures the destination address of a Unix socket
+#
+# @path: filesystem path to use
+#
+# Since 1.3
+##
+{ 'type': 'UnixSocketAddress',
+ 'data': {
+ 'path': 'str' } }
+
+##
+# @SocketAddress
+#
+# Captures the address of a socket, which could also be a named file descriptor
+#
+# Since 1.3
+##
+{ 'union': 'SocketAddress',
+ 'data': {
+ 'inet': 'IPSocketAddress',
+ 'unix': 'UnixSocketAddress',
+ 'fd': 'String' } }
+
+##
# @getfd:
#
# Receive a file descriptor via SCM rights and assign it a name
--
1.7.12
- [Qemu-devel] [PATCH v2 0/9] Embedded NBD server, Paolo Bonzini, 2012/10/01
- [Qemu-devel] [PATCH v2 1/9] build: add QAPI files to the tools, Paolo Bonzini, 2012/10/01
- [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types,
Paolo Bonzini <=
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Eric Blake, 2012/10/01
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Eric Blake, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Luiz Capitulino, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Luiz Capitulino, 2012/10/02
- Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Paolo Bonzini, 2012/10/02
Re: [Qemu-devel] [PATCH v2 2/9] qapi: add socket address types, Luiz Capitulino, 2012/10/02
[Qemu-devel] [PATCH v2 3/9] qemu-sockets: add error propagation to inet_parse, Paolo Bonzini, 2012/10/01