From patchwork Mon Feb 27 12:02:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valerio X-Patchwork-Id: 1748666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JvF1uyxu; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQJz90NNsz1yWw for ; Mon, 27 Feb 2023 23:02:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C9FFE60768; Mon, 27 Feb 2023 12:02:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C9FFE60768 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JvF1uyxu X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m80k06ym9Gzi; Mon, 27 Feb 2023 12:02:38 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id D53206059E; Mon, 27 Feb 2023 12:02:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D53206059E Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 92276C0032; Mon, 27 Feb 2023 12:02:37 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8CC09C002B for ; Mon, 27 Feb 2023 12:02:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5A30460B88 for ; Mon, 27 Feb 2023 12:02:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5A30460B88 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0TN5fwS0xuSF for ; Mon, 27 Feb 2023 12:02:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 00965606C0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 00965606C0 for ; Mon, 27 Feb 2023 12:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677499354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vBpjp24NEqCTRUUkOgYq7qugXzi1OdPynFwiyW5etC8=; b=JvF1uyxut82lc9OiJ7egP0/byDf7tLtQkfktbtQMM3n3GkBQflDQGL7gO3Mypu0MjyD5HX qJG1HcNCSy8LL9OCgHxx6gSoY8nHcUvl9xWDYJ4UnTcEpwPafmvqVrpA/t1n9tmAicIBvL q+U2/zRtDvvEqe2X97GXIIsEA7R9HuY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-491-Pq6K0ddrPqq2WEURlRKOYA-1; Mon, 27 Feb 2023 07:02:32 -0500 X-MC-Unique: Pq6K0ddrPqq2WEURlRKOYA-1 Received: by mail-wm1-f69.google.com with SMTP id k36-20020a05600c1ca400b003eac86e4387so5232677wms.8 for ; Mon, 27 Feb 2023 04:02:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677499351; h=content-transfer-encoding:mime-version:user-agent:message-id:date :cc:to:from:subject:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vBpjp24NEqCTRUUkOgYq7qugXzi1OdPynFwiyW5etC8=; b=T8gHFgRTpios43F5j60Ea5oao5gjFW5dbQlVnmI4DvUDDBBm3RFoYnlgpISYhb88b1 IzPCW+N53sE1klv0VLTuA5a0t5FaH9XhZigR7DV27GHz7GNdBLV2a3TyoLrZ10B99Rz9 v2qjxu/A0wPAtHu5HYDTT8K1qlmyNS0UT62ktGkNsU8CY66PRBwL0AiCPsM+2G7XDZuB 5xRUqIW+ygUz+eI0pyPGYSE8L65jBIJHjcI9X6qZ1ZladcEJDDksySACp/ONE4H8dW2H X7u8TTRI5g0btzgNsyJ8xKDVyLzIVLthJotvJJELFhpID2F0B8kqWuxQmfThSrrPTRa3 Jl3w== X-Gm-Message-State: AO0yUKVSiskja7BYVvDUikfhuGfpQlYiq87jM2iOYqZY97cYuU8kdRok MwpupaMKeX6OQSuzFbDO2yi8f3RrjcMI0s5ryXjY6AtUdvMKL4MCaZGNrAcb7G33uqzqhK2YBwO d1tcmNQifoNUookp4cLqP2VhSBQqBOte5u4IOxRCFzb1zrTA3yc6m8Zu67nRV9JRlT/MpJMBSOp U= X-Received: by 2002:adf:fb0f:0:b0:2c7:b5ef:9695 with SMTP id c15-20020adffb0f000000b002c7b5ef9695mr6324018wrr.3.1677499350927; Mon, 27 Feb 2023 04:02:30 -0800 (PST) X-Google-Smtp-Source: AK7set/VfbQwf9XqH50QGB+RRCz6T3DxoTQHDNT/c0XPDwZxD2mPKIrKW1hU0m63WqOx4+VPgR6Fig== X-Received: by 2002:adf:fb0f:0:b0:2c7:b5ef:9695 with SMTP id c15-20020adffb0f000000b002c7b5ef9695mr6324000wrr.3.1677499350589; Mon, 27 Feb 2023 04:02:30 -0800 (PST) Received: from localhost (net-93-151-200-33.cust.dsl.teletu.it. [93.151.200.33]) by smtp.gmail.com with ESMTPSA id m33-20020a05600c3b2100b003eaee9e0d22sm9489435wms.33.2023.02.27.04.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 04:02:29 -0800 (PST) From: Paolo Valerio To: ovs-dev@openvswitch.org Date: Mon, 27 Feb 2023 13:02:29 +0100 Message-ID: <167749934774.3717671.17030093662637799219.stgit@fed.void> User-Agent: StGit/1.5 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: i.maximets@ovn.org Subject: [ovs-dev] [PATCH 1/2] cli: add option to display the version from Cargo.toml. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Paolo Valerio --- src/cli/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/cli.rs b/src/cli/cli.rs index a5b08e6..f8593e1 100644 --- a/src/cli/cli.rs +++ b/src/cli/cli.rs @@ -73,6 +73,7 @@ impl Debug for dyn SubCommand { /// /// packet-tracer is a tool for capturing networking-related events from the system using ebpf and analyzing them. #[derive(Args, Default, Debug)] +#[command(version)] pub(crate) struct MainConfig {} /// ThinCli handles the first (a.k.a "thin") round of Command Line Interface parsing. From patchwork Mon Feb 27 12:02:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valerio X-Patchwork-Id: 1748667 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=czEvI/yX; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQJzH1sTqz1yWw for ; Mon, 27 Feb 2023 23:02:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 2A297409A7; Mon, 27 Feb 2023 12:02:49 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2A297409A7 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=czEvI/yX X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lJquAv7WaNyh; Mon, 27 Feb 2023 12:02:48 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 1C1D5415EF; Mon, 27 Feb 2023 12:02:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1C1D5415EF Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D0014C007E; Mon, 27 Feb 2023 12:02:46 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2D61BC002B for ; Mon, 27 Feb 2023 12:02:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 16619410EC for ; Mon, 27 Feb 2023 12:02:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 16619410EC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cktjn_F5y7Ja for ; Mon, 27 Feb 2023 12:02:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5741E415F8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5741E415F8 for ; Mon, 27 Feb 2023 12:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677499361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x8jTmoHf1FvCS7nbnytw3FYiAKzekGQKDdzlpn3184g=; b=czEvI/yXslp/ND2bUHZaZm5oBeqfNpf69jLonJW97Uh2Si/u5mgCNfXwY2PxKs4uI0xqZt ynreRxEySIocbPcZj1m0RLUV66rSvfL35Od17DGElRsRHLwtI01nm2Erz+5C2dPDNAocRn J/B60qyIIvhyToAxAhuNGctV/qTvt1o= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-652--yzwvr1sO56FhHEP6ilqVA-1; Mon, 27 Feb 2023 07:02:40 -0500 X-MC-Unique: -yzwvr1sO56FhHEP6ilqVA-1 Received: by mail-wm1-f69.google.com with SMTP id m28-20020a05600c3b1c00b003e7d4662b83so5269473wms.0 for ; Mon, 27 Feb 2023 04:02:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677499358; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:cc:to:from:subject:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=x8jTmoHf1FvCS7nbnytw3FYiAKzekGQKDdzlpn3184g=; b=MedoLDr3uWvTgpu4rL62SQ/rfUtXn6rBdRxWPjX+rdC2563sH7+oaVN/+NawBhYhF3 5nOGzcIZGqVgR3PNKrI1M5/RItCSoq/jKEtyfTzRdJ5EqWN0/bDuBRUzJPvBjK+S/ZUp jhkM6KWEIAPPNp2tDLlAy1JBQRehLzZFWCKlXKC0VPWlzeURBBt862fpeinB+L5+EfZK swuhxRhOTbSpl7PTteYSpPwdezho/yWZkcjjWftAJG4OLTNuVPuUXAunDYbHq331iVcd 3IOLt7Ij7zJw78BFKLvDD7iEq7GbawnDA0sO6W0UdBDlX7dibBCTsad5n9YpaxkBuaoP WP5g== X-Gm-Message-State: AO0yUKWZ2msOapbZHg0AVmgPYRS5FgYdBIG0wlIUCOcx8ZBH1Ilvi9RL TAg9STn7rRir+yDXo6efENiqx4Mm3T8qGKjCJhELT0H6LVGzExkUQ35LTgFIUtC1gyZ5U8fBArw cpLgFfBkwPJIBY4hud0KY6HbdfdzCUAkoH+dM1ELG62FEUzH6dKjAO3tlSVjGtQXiP3welYkk6S 0= X-Received: by 2002:a05:600c:3c91:b0:3eb:3986:9c03 with SMTP id bg17-20020a05600c3c9100b003eb39869c03mr4445318wmb.4.1677499358803; Mon, 27 Feb 2023 04:02:38 -0800 (PST) X-Google-Smtp-Source: AK7set8dTr98r+T+fMsy1nwxKD+g//LTAc+BbvWDbPo55Z+0MOvoLvjGbkPORN2g0dsrPv1lmUd81w== X-Received: by 2002:a05:600c:3c91:b0:3eb:3986:9c03 with SMTP id bg17-20020a05600c3c9100b003eb39869c03mr4445286wmb.4.1677499358345; Mon, 27 Feb 2023 04:02:38 -0800 (PST) Received: from localhost (net-93-151-200-33.cust.dsl.teletu.it. [93.151.200.33]) by smtp.gmail.com with ESMTPSA id bh22-20020a05600c3d1600b003e01493b136sm12499938wmb.43.2023.02.27.04.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 04:02:37 -0800 (PST) From: Paolo Valerio To: ovs-dev@openvswitch.org Date: Mon, 27 Feb 2023 13:02:37 +0100 Message-ID: <167749935572.3717671.2065464133174219952.stgit@fed.void> In-Reply-To: <167749934774.3717671.17030093662637799219.stgit@fed.void> References: <167749934774.3717671.17030093662637799219.stgit@fed.void> User-Agent: StGit/1.5 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: i.maximets@ovn.org Subject: [ovs-dev] [PATCH 2/2] WIP X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Paolo Valerio Signed-off-by: Paolo Valerio --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index c922fae..c28a07f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ use anyhow::Result; use log::error; use simplelog::{Config, LevelFilter, SimpleLogger}; + mod cli; mod collect; mod core;