From nobody Sun Dec 21 17:33:36 2025 X-Original-To: dev-commits-src-all@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 4dZ7fT38p4z6LB7y for ; Sun, 21 Dec 2025 17:33:37 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dZ7fS1gn4z3KtH for ; Sun, 21 Dec 2025 17:33:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766338416; 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=bgZVwg+FS3xQY97d2hPY8x0bVZF+NVx9WqJxTQ+G+os=; b=tc1rrZ9+OSDfpbLp2V8WiqnK7BKBQxoRQ5FCLRcMHFNAawDfzwrBLjS5cwbyF3q6SWlg1D 6sgsQGjDu0O6/8/a/lXfVAAWWEw9IyXVZs2Gn24kSsg5kdsp1Ow3vHwifsUsnQpuZREWKg kkfvvGicDBIP69YLz8uitxx63WonGI1/Uy5VvCb4zRB4W6IfWkXt1x5Dmm02F0IakwDEGZ pU1+MXiCgfESa/7UDTlsggQWzJerPwEl++SQeBzaskcFEJ+mAVKOyJO7CwNjBlnuzZwp8u zWxUucGs1t/XJV7Tlo6kPec030bRP8ySURlYpHqChIIgSjKxcplP6UVoI9U8VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766338416; 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=bgZVwg+FS3xQY97d2hPY8x0bVZF+NVx9WqJxTQ+G+os=; b=EUHyVGOpav1exAQINbeRgd99LvoodTuJ6u7KctMz0Imcvgm4rVpkEoB6AO5iSmDATFoxs5 gkG9Qy9C7ZGzVUN23aa/XcCwsH833g4YQUOsBTP3BDNAWq+Gsp8SX8+Ybo9+4Bjmj7nKox KQQ3LxBLWvoCGgI110KYkY231mf+Pmnz9dp4z9VpsXulmAwdA3YyRyT7pBJ+P0MmwcWAJ7 RaXHir+jwwldxIHhtvOi/yMuZgj9kvuVJ7OPKS1SzR1TWeMuhzQCEEHcSPI7JzEfYFhxzT DG442UOxXAfrpguhtdsvIhc0+ubzFWKovPVzEkaA5nnArRlMz1r/1q04nMeEmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766338416; a=rsa-sha256; cv=none; b=AJNlMn2zyC9/KpdnN9cjgsN+fEx8fAv8UKovLrXWNFcEYMkidKOA4warf50NRpBKzXVjKn oVINX5iknljrlvloWxPOlLZQlpId1GBu6Zsv3W3xkLd7dIu3ZwgtxcEc5xqlkHIW5m2lmT 4CYSyYGspHpE03Gt9hvhgCx/NiSwUGjewb5jEy2OYnDSAVbgg/CZ+B2mmnQ+X9NJ+Z+0ot e1Co338/C6SLGeXJRNsrhiNxG/VR4GUQiELsAeMfhgMIDGAwoMg5SDdK6ivuhAo5BRj13s OErSUVYipF9kU7YlqZSKCVrkOLfGU6VurTUW1Kxu0uyia4VrvVl0tTukcUPzbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dZ7fS18Q7zqsq for ; Sun, 21 Dec 2025 17:33:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 23ba3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 21 Dec 2025 17:33:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 622d7fa18d33 - main - pf: fix pcounters array size List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 622d7fa18d33cd8c4e1195888068fe1fe7c631a1 Auto-Submitted: auto-generated Date: Sun, 21 Dec 2025 17:33:36 +0000 Message-Id: <69482f70.23ba3.495318e2@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=622d7fa18d33cd8c4e1195888068fe1fe7c631a1 commit 622d7fa18d33cd8c4e1195888068fe1fe7c631a1 Author: Kristof Provost AuthorDate: 2025-12-21 10:27:19 +0000 Commit: Kristof Provost CommitDate: 2025-12-21 17:33:06 +0000 pf: fix pcounters array size It's a 2 * 2 * 2, not 2 * 2 * 3. We only use PF_DROP and PF_PASS, so two rows suffices. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/pf.h b/sys/netpfil/pf/pf.h index bcd66fd17d5d..333e5b53b0a8 100644 --- a/sys/netpfil/pf/pf.h +++ b/sys/netpfil/pf/pf.h @@ -290,7 +290,7 @@ struct pf_status { uint64_t lcounters[LCNT_MAX]; uint64_t fcounters[FCNT_MAX]; uint64_t scounters[SCNT_MAX]; - uint64_t pcounters[2][2][3]; + uint64_t pcounters[2][2][2]; uint64_t bcounters[2][2]; uint32_t running; uint32_t states;