From patchwork Wed Oct 10 14:03:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 190694 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1EFA02C008B for ; Thu, 11 Oct 2012 02:19:58 +1100 (EST) Received: from localhost ([::1]:50188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLy4i-0002XJ-6m for incoming@patchwork.ozlabs.org; Wed, 10 Oct 2012 11:19:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLwtN-00030V-FV for qemu-devel@nongnu.org; Wed, 10 Oct 2012 10:04:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLwtH-0002I9-Ko for qemu-devel@nongnu.org; Wed, 10 Oct 2012 10:04:09 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:46951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLwtH-00025i-Dr for qemu-devel@nongnu.org; Wed, 10 Oct 2012 10:04:03 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so189690dad.4 for ; Wed, 10 Oct 2012 07:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Kl4TF6SwyfvhVi5ZrJBjsh1xQTuhUhUdAdk9CzQr9N4=; b=pH5MXPRrzQWHT1TYabSyIO4AL4aE4s56YNU6sgawZ/H0bQVYrw4Ussx9pKAsRdrmu2 9JssG6JpPszxOv3h3x8lgJpok65H3PhwC4tjWs7Pi4XxBdFy42gVlbiVEzStrrM5zxwD 2BOzG9C7G14rVEtcmvPxe301VaLGj5oOnlzV3Ul4BgnScPF9/M5fGUjpVf+izNXVZ2kE Mws7f2NBgsqUcwosQKnlSpYJ5Y3JKtWtW2JW1dt68KZ6eRrMs9vH/hwDtdTvTNejanuD 3HkaaVCXhlAOrNy20lgyE4q3gobKEOhDcBVzr1M9VApRIHluWdABltvcNDEA9NLPd12/ yCmg== Received: by 10.68.242.9 with SMTP id wm9mr73656470pbc.62.1349877843037; Wed, 10 Oct 2012 07:04:03 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-169-1.ip50.fastwebnet.it. [93.34.169.1]) by mx.google.com with ESMTPS id n7sm905723pav.26.2012.10.10.07.04.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 07:04:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 10 Oct 2012 16:03:01 +0200 Message-Id: <1349877786-23514-21-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1349877786-23514-1-git-send-email-pbonzini@redhat.com> References: <1349877786-23514-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.45 Cc: lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH 20/25] qapi: add socket address types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Acked-by: Luiz Capitulino Signed-off-by: Paolo Bonzini --- qapi-schema.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file modificato, 53 inserzioni(+) diff --git a/qapi-schema.json b/qapi-schema.json index f9dbdae..d40b5fc 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2505,6 +2505,59 @@ 'opts': 'NetClientOptions' } } ## +# @IPSocketAddress +# +# Captures the destination address of 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