From nobody Tue Feb 10 14:59:47 2026 X-Original-To: pf@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 4f9PqR1Cm0z6RRfh for ; Tue, 10 Feb 2026 14:59:47 +0000 (UTC) (envelope-from bugzilla-noreply@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 4f9PqQ6bnTz40FP for ; Tue, 10 Feb 2026 14:59:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770735586; 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: in-reply-to:in-reply-to:references:references; bh=a5ltFuOs2mcjvwwI+DkeFDwYZrEPem93Sy+6iE8c2JU=; b=Uze1EKVW4J+3cKmy0IqnTZYFKRKCpuWSSslfvYWxjomzuHCVQZlhzI962/eiecdriWoU4a rgauZOGGlSSEgcaKlqUTcaTq100KrDZg7OqIBzdSBIQ0m1GNO41QzZ6gSONAAm5FMAK6y6 962ni3M+d+uawuGbWxWEUTGv0AKzbMa3xe6tEjoPYU3jyVSViiPcbpNTLh+wFvXFG81PVa DuNa/zQO1Y4M4EaIdtzEKzIhDOEjkpMtu8On2EBOBpaLh470l4zhYY/e/GoX45pgBmpmvE 4Tv7jWI3b910xW5JaO8qEHlGa0IvnCJ93WPOPOjHTXjKIYqLv8cKZdV8xs31cg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770735586; a=rsa-sha256; cv=none; b=HQ0lLuKYOs2oDQnPG7fiKRodM/CzLnKLO3uxyCdCLTswwlenfLpzd84x1YLsLKrfP1HU6+ 4nq+LyEQtU5e3GZjIhVJ57oeh/eEfkRQ6A5Iyj88j4RzFdd8q26YihvGJQtrhN7toxS13G 0iwWX3OgDBkmoWj+Ce7tQZgbRFiBckEZtYylabBAPENuO2zxbSJ/2RZOnMk/xbU44d1uBF Iow2JhMi0ceTFZQtZ46/BKIkrspAQSMeUyGWWbz/29f0zKCCBHscK1rB8euH8KousJpDFe Aa7mPluMtB0FHe+Qe1AsmpykDaqngWkuKYugn/pVVedytJ5xEeyArEipDraCsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770735586; 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: in-reply-to:in-reply-to:references:references; bh=a5ltFuOs2mcjvwwI+DkeFDwYZrEPem93Sy+6iE8c2JU=; b=DIYvXX2RZhsp16asoxgwjxFoAQKnZ6/uWx0SrJRr/8U/ouBZBwTUsravBI7uk/zhcRsDtB b9DbJVcgdHsI1dZhnpp/vvImVSshsTo8B9in07IaGJaEQiSKM5k2Ni5s/Y4hUav+2H0dBl MChsGbwgxXEv3W5mb+pGq1oTimg1UKUSToYjTfXZ+GPa52ZViHQlG/bquWZQcod99NAbsY D9qq2umUAd1b/GzMFhVYPgFvzCIfUtQVfJDcNkJfn1qEYIiDwcQ9I6fLrayl9Z/8A6OqVp Uvwppi7JC0Y2gmpqxXvpzn8f70UGyjgiai//grlQVObDSiOfzQ39Xk0IKoKgkQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4f9PqQ5Ylhz1MQG for ; Tue, 10 Feb 2026 14:59:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 61AExkQ6042754 for ; Tue, 10 Feb 2026 14:59:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 61AExk2l042753 for pf@FreeBSD.org; Tue, 10 Feb 2026 14:59:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pf@FreeBSD.org Subject: [Bug 291763] pfctl: loginterface packet counts for pass/block swapped; byte counts all 0 Date: Tue, 10 Feb 2026 14:59:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eborisch+FreeBSD@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291763 --- Comment #7 from eborisch+FreeBSD@gmail.com --- > It's also interesting to look at pfi_update_status(), where pcounters is= =20 > populated, which also treats it as a 2 * 2 * 2 array. In 15, with the definition of pf_status.pcounters[2][2][3], the pfi_update_status() code extracts out the [2][2][2] lower sub-array by inde= xing [i][j][k] with the loop. In contrast, 'pfctl -s info' hits pf_handle_get_status(), which _casts pf_status.pcounters[2][2][3] to a pointer_ and copies the first 8 elements = into its output. This should work on main with the right-sized pf_status.pcounte= rs, but leads downstream to the incorrect output from =E2=80=98pfctl -s info=E2= =80=99 (with 'set loginterface ifname') on 15. If the resize to pf_status.pcounters[2][2][2] lands in 15 / 15.0, we should= be set. If the desire is to not resize the kernel structure within stable/15, = then pf_handle_get_status() needs an [i][j][k] extraction loop like pfi_update_status(). I can create a patch with those changes and push it up= to GitHub, if you like. 15.0-p2: # pfctl -s info Status: Enabled for 4 days 12:54:12 Debug: Urgent Interface Stats for vtnet0 IPv4 IPv6 Bytes In 0 0 # Stays zero Bytes Out 0 0 # Stays zero Packets In Passed 8979115 24 # Correct Blocked 20600 0 # Correct Packets Out Passed 0 0 # Stays zero Blocked 6507902 0 # Actually Pas= sed Out vs. 14.3 on a sibling system: # pfctl -s info Status: Enabled for 6 days 04:51:56 Debug: Urgent Interface Stats for vmx0 IPv4 IPv6 Bytes In 89609864859 0 Bytes Out 89429385267 0 Packets In Passed 116945513 0 Blocked 1061014 0 Packets Out Passed 93152637 0 Blocked 629 0 --=20 You are receiving this mail because: You are the assignee for the bug.=