From nobody Fri Nov 29 21:39:23 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y0RQh39thz5flKb; Fri, 29 Nov 2024 21:39:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y0RQh026Hz442c; Fri, 29 Nov 2024 21:39:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732916364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MQ/TaCTADrJLLDuKQltejoPrM9wTWSPD2Qfj4LZgRRg=; b=uDyhFvxGmi3DSrwqJ2UiD1lGmSFoz7j8fvur05SPIi4qNuNQ2wGf+hi29jKEcH850/pV7q PRqy4RC4tmLU+lZMvdhmUkt/FcAAjZDQqZnD4JQpMMjRYo8SYAd7H7UB6xDBRMlKdVCjfb DbI+sdUcFW2/Cq2FrMwOIEmXfvuAP0idQxCCsZHrAwq9J72PbIxwsCRQshSEJ6ZGYnHDiS 5F9Q38Fv3nOQcjMA2Ebm4vCMOS1QB+FtJSoQNljdULFjEkAr9yPD66khjkOhngIQeZUS6M lRC8nITupAlvno9shMMZwQqIA/QuspVYsJk2gTbJyZTTzZu7sOiKPgjNmo9Iqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732916364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MQ/TaCTADrJLLDuKQltejoPrM9wTWSPD2Qfj4LZgRRg=; b=DuKH136FQf9BYGcRA7xRPW6fJb3b33aCyVpMeRQK8ML/JHiV+0zARd245EhBGqXklJlpRo 9JUjMzzOzxod8pKVW4yp4cxkLcyFtuM9/kCLfmiEOi6UVRBmlpImEcVtxEjx8ZHjU/mG2r iEtmmy6KQCJ0iKyAIq6Lv56bnF2fhbQDN7Vanca1DUAC77xlMOL+ygaIbBf3jvtLOn/fqH q7iYRXFSnFgyLCKKErGTbOndo+SFptvF60meETIF8sG3VrRbTrV7+dJUfwq/W+meuhQ3Mg 7BvYuqCZ6eZqOtVTiF2Xyw4fXJqh+cuvb2kFazEzu6jFDBmJT/6blm6QLnQVew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732916364; a=rsa-sha256; cv=none; b=GSmxYAPmzwdK3Tz386UTla4Q2B0kQ+iaqDM84Efnau5iXF4kBqzu7v6U/irvD2eTYr++VT iow1MNmtRBpf7XgQ0YG2liCZBGL6V0KIzfTR83i0Fu6+92PPOt+dWwtbw/kquB7GLETqo2 kwxxwNiqnKniJg5+OQnxgOEEHH1daSArM0l3ojl+QQb9oese58iYjNnD55CkXtQlYPwIi5 k6JiqozUEV2Fb/yOQLPn3m8oE0RTYRzggcvLQv/NyGEn/ZP51xzyUc/S331yVGK67CrnBX m3dQYI1lVR+I1zjwKkakdSCNrcFDJsH1oXvxylXmOLCtyKI0eyJwDLNAfm3ZHw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y0RQg5hjzzgWg; Fri, 29 Nov 2024 21:39:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4ATLdNle093905; Fri, 29 Nov 2024 21:39:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ATLdNmY093902; Fri, 29 Nov 2024 21:39:23 GMT (envelope-from git) Date: Fri, 29 Nov 2024 21:39:23 GMT Message-Id: <202411292139.4ATLdNmY093902@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: de13eea53e4c - main - ipfw: Fix comment typos in ipfw struct dyn_data List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: de13eea53e4c1e5ba593bb77257568c0f5ef1645 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=de13eea53e4c1e5ba593bb77257568c0f5ef1645 commit de13eea53e4c1e5ba593bb77257568c0f5ef1645 Author: Damjan Jovanovic AuthorDate: 2024-11-07 16:27:39 +0000 Commit: Warner Losh CommitDate: 2024-11-29 21:38:35 +0000 ipfw: Fix comment typos in ipfw struct dyn_data The bcnt_fwd and bcnt_rev fields are the byte counters, while the pcnt_fwd and pcnt_rev fields are the packet counters. Fix the comments that were swapped around. Signed-off-by: Damjan Jovanovic Reviewed by: jlduran,imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1517 --- sys/netpfil/ipfw/ip_fw_dynamic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c index 1dbecbcd6d53..34aae71c174b 100644 --- a/sys/netpfil/ipfw/ip_fw_dynamic.c +++ b/sys/netpfil/ipfw/ip_fw_dynamic.c @@ -144,10 +144,10 @@ struct dyn_data { uint32_t sync; /* synchronization time */ uint32_t expire; /* expire time */ - uint64_t pcnt_fwd; /* bytes counter in forward */ - uint64_t bcnt_fwd; /* packets counter in forward */ - uint64_t pcnt_rev; /* bytes counter in reverse */ - uint64_t bcnt_rev; /* packets counter in reverse */ + uint64_t pcnt_fwd; /* packets counter in forward */ + uint64_t bcnt_fwd; /* bytes counter in forward */ + uint64_t pcnt_rev; /* packets counter in reverse */ + uint64_t bcnt_rev; /* bytes counter in reverse */ }; #define DPARENT_COUNT_DEC(p) do { \