From patchwork Fri Oct 19 13:32:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 192695 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 D4B2E2C008E for ; Sat, 20 Oct 2012 00:36:39 +1100 (EST) Received: from localhost ([::1]:43375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPCkf-000179-TV for incoming@patchwork.ozlabs.org; Fri, 19 Oct 2012 09:36:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPCil-0007p0-Fb for qemu-devel@nongnu.org; Fri, 19 Oct 2012 09:34:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPCif-0006mj-E6 for qemu-devel@nongnu.org; Fri, 19 Oct 2012 09:34:39 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:41858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPCif-0006mc-7w for qemu-devel@nongnu.org; Fri, 19 Oct 2012 09:34:33 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so238995dad.4 for ; Fri, 19 Oct 2012 06:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=OtQ1M7SlfWKNkIlaef4wjS91Qe25vr5VEwqlnxD2yz0=; b=Aw9/kjxhFaxI9cuuuwUJOjsoFi46jThelPk79xLsJq3lSa+z4MkZa5LCi3O7ZrLuj0 U/a7TVHd71gtmsImjLrUEuoaIyIHmU6e31hRL55De96A3Eh9rBFIkoteHdgoLUnYO1iH Z6oc+4y3jAqCGKem5/vXDhBEdfWtNYSVxnIAEY+fKsBhRszk4JJmGerNRJ8ZMgZ3Lna2 OjEKewqOpnj12FNb1v6IBRfsqAooqK8pAva5L1Lo897R350Sh2wQPQqtFM5UOxB5cT5H pEoZWXyPjUUzvG8ZAtSey7NcuptMadUJRyD6qlZt6WUEUlTifKxwzpJc/dAKAiMwirOi Xl3A== Received: by 10.68.129.72 with SMTP id nu8mr5923886pbb.29.1350653672617; Fri, 19 Oct 2012 06:34:32 -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 kr4sm1240726pbc.76.2012.10.19.06.34.23 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Oct 2012 06:34:29 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 19 Oct 2012 15:32:03 +0200 Message-Id: <1350653528-5834-25-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1350653528-5834-1-git-send-email-pbonzini@redhat.com> References: <1350653528-5834-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 Subject: [Qemu-devel] [PATCH 24/29] 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..a92a33b 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2505,6 +2505,59 @@ 'opts': 'NetClientOptions' } } ## +# @InetSocketAddress +# +# Captures a socket address or address range in the Internet namespace. +# +# @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': 'InetSocketAddress', + 'data': { + 'host': 'str', + 'port': 'str', + '*to': 'uint16', + '*ipv4': 'bool', + '*ipv6': 'bool' } } + +## +# @UnixSocketAddress +# +# Captures a socket address in the local ("Unix socket") namespace. +# +# @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': 'InetSocketAddress', + 'unix': 'UnixSocketAddress', + 'fd': 'String' } } + +## # @getfd: # # Receive a file descriptor via SCM rights and assign it a name