From nobody Sun Feb 8 06:56:11 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1616126589; cv=none; d=zohomail.com; s=zohoarc; b=cTiwlM9zYktcG0f7xI/6bSCwPrTPmBWPHXK8sY5nFvu9izpiKGo1qvYHrIQ65s71fZqO9uNy4wund12lfj82jjnFL8LlrCluZvYZOupToTWr4LcxpnIEhZVsN5ogUE1QT8IcM7AS6EJW5Ffe3oKvrxqUrOnd7DTJlPf7kgEMCA4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616126589; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XoN/4D8GCcv3l9SakoatH+v9kFFhizyNbgnABoqSzEU=; b=NpsR2Q5abv872CRwZrh8wiiyrMOY7aIE0QxSiiBllV1rH+3eXRXJCAlLMlREmN+ejn9xi5I45cgmpp1iuRzsIJcy+CxJormY+tMKvOukR24eQ0BsjIegBkWzj2VqxsqMW2MWYrVM7Dpg3zHyEBN6Itp5WxlY9G9+TrsDO9PwaSA= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1616126588999298.54690055628294; Thu, 18 Mar 2021 21:03:08 -0700 (PDT) Received: from localhost ([::1]:55676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lN6Lr-00009x-JQ for importer@patchew.org; Fri, 19 Mar 2021 00:03:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lN6Jp-0006vJ-IH for qemu-devel@nongnu.org; Fri, 19 Mar 2021 00:01:01 -0400 Received: from mga18.intel.com ([134.134.136.126]:65160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lN6Jf-0004P3-59 for qemu-devel@nongnu.org; Fri, 19 Mar 2021 00:00:59 -0400 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 21:00:48 -0700 Received: from unknown (HELO localhost.localdomain) ([10.239.13.19]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 21:00:45 -0700 IronPort-SDR: mKrAEJi88jUD2A/A1Bedrrc6YB3aoVRShBdr3Ry8nQtmVtaCgTF8Ya00MOkwSTm2rOzy1Ci2RV dZVrglg2F1rQ== X-IronPort-AV: E=McAfee;i="6000,8403,9927"; a="177409906" X-IronPort-AV: E=Sophos;i="5.81,259,1610438400"; d="scan'208";a="177409906" IronPort-SDR: gQROqdB514rQXKH9NVCObihYXXkQTKh1jtRQ6PchPaL/0DKBQSSSJQpYqM/C+NFJ+J5MAc9wHQ d0QhzbepSkgQ== X-IronPort-AV: E=Sophos;i="5.81,259,1610438400"; d="scan'208";a="606456635" From: Zhang Chen To: Jason Wang , qemu-dev , Eric Blake , "Dr. David Alan Gilbert" , Markus Armbruster , Li Zhijian Subject: [PATCH V4 2/7] qapi/net.json: Add L4_Connection definition Date: Fri, 19 Mar 2021 11:55:03 +0800 Message-Id: <20210319035508.113741-3-chen.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210319035508.113741-1-chen.zhang@intel.com> References: <20210319035508.113741-1-chen.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=134.134.136.126; envelope-from=chen.zhang@intel.com; helo=mga18.intel.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhang Chen , Lukas Straub , Zhang Chen Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Add L4_Connection struct for other QMP commands. Except protocol field is necessary, other fields are optional. Signed-off-by: Zhang Chen --- qapi/net.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qapi/net.json b/qapi/net.json index 498ea7aa72..cd4a8ed95e 100644 --- a/qapi/net.json +++ b/qapi/net.json @@ -825,3 +825,29 @@ { 'enum': 'IP_PROTOCOL', 'data': [ 'tcp', 'udp', 'dccp', 'sctp', 'udplite', 'icmp', 'igmp', 'ipv6' ] } =20 +## +# @L4_Connection: +# +# Layer 4 network connection. +# +# Just for IPv4. +# +# @protocol: Transport layer protocol like TCP/UDP... +# +# @id: For specific module with Qemu object ID, If there is no such part, +# it means global rules. +# +# @src_ip: Source IP. +# +# @dst_ip: Destination IP. +# +# @src_port: Source port. +# +# @dst_port: Destination port. +# +# Since: 6.1 +## +{ 'struct': 'L4_Connection', + 'data': { 'protocol': 'IP_PROTOCOL', '*id': 'str', '*src_ip': 'str', '*d= st_ip': 'str', + '*src_port': 'int', '*dst_port': 'int' } } + --=20 2.25.1