From nobody Tue Oct 13 14:50:03 2026 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 4j3y1F2wmkz6vR8k for ; Tue, 13 Oct 2026 14:50:09 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4j3y1F0wN4z4FNL for ; Tue, 13 Oct 2026 14:50:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791903009; 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=utX+oxfqjXssMywJSdQdezK0pSjlFJD7ltMZIwY/tqE=; b=PlxuZxex1EzZKIO3HgSBDLhQEJKKfiOFDLXzHgnQoLP1euwj2Hx81JORivTD8tKAi5KvXS yI2LNfU3xmWnyl1k/LD43o4i4cFNmGXbENP4/rXns/u2cW9xit0+cWiy08bVPy3I26bWCz P0ERqixDpGCpzoGlurJGYuewvvRgotWR8pw1ftjhcclZSLpykqwB6RPvJhx5XqfsigWlrM 1i/QBPgJ5jZ2NL/e4kRtlTeIXfQ+cBx0KPoTkzt6L546O1TEC5FWzWSbD25Yc5ylYwAC3/ 60bD1R1tjO0hsQjt9a3+kXqWW2amG0LI7f85G5E+bIOXSRYLRbLrKyWVeqqOtw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791903009; b=vizqN/g/4EgGPWzrFjhGHQoxNsVJAGyxpdUq/6jDyFmsrDe+hEBo/nPm2d6th0VmRrHGRp O2/w9/1aw7yAlaHdqWmKwxg19c/pBRPkwWCGa9qLZPzZbSJFhCNDD5vikeqSsgzSJ2gOSe wgiWsHBByEbLYXw9fi86nHzwquGWFW4K8kQjODbkaKeKNjjgmsbb5bHrEyYR7Ez7TyUGR6 tlVonY2GCX5rCF3/MDbj5NAb0r17nBIVnSHHOawwW7iES70x6jGufc/VtG/r9d0tp8Ua1z +LG3/jMo3L/ZK1KCc+jTqHandMSfdSAf/OYPHO+Zyb+PgVT8adkfWYjO921gOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791903009; 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=utX+oxfqjXssMywJSdQdezK0pSjlFJD7ltMZIwY/tqE=; b=ZpDRT7uD0TC7GqAeqDx0Xo1+POhm3ibWh1H8KtyrVzweHzcUimkYBrAJZgvU9O1xFBhuRd lp3xR23r12kR2vOqrdPTvOtC/WSRfV9S3e43IhUlIk+PH7uhIAzWlakNFEg58HZpvzN5mT 6O1Q1IhBkqzs+f4WDhk6xMvhdEq++9+pe8qYoD+s8gmRqBCgeDioImFKB5R62LxWdKJQBx 5hZy7s47qKzyfZR5Yg1xEdy+cTMDlJolLOgEv5BnEjTLM0737r+V6Hl2s3h6rLfivVjdTU i/ESX9RfH/mHuINnW7o/jIzVj0HYnMIrWkRo/U0OiKUmSmvROqeMOWZcRX3jxg== 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 4j3y1D74TTzJyV for ; Tue, 13 Oct 2026 14:50:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 19576 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 13 Oct 2026 14:50:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: R. Christian McDonald Subject: git: 9664345efb8b - main - libpfctl: Return max_win and mss of state peers List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rcm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9664345efb8bb598536fd069c0dd797fc60ce1d2 Auto-Submitted: auto-generated Date: Tue, 13 Oct 2026 14:50:03 +0000 Message-Id: <6ace451b.19576.996be2e@gitrepo.freebsd.org> The branch main has been updated by rcm: URL: https://cgit.FreeBSD.org/src/commit/?id=9664345efb8bb598536fd069c0dd797fc60ce1d2 commit 9664345efb8bb598536fd069c0dd797fc60ce1d2 Author: R. Christian McDonald AuthorDate: 2026-10-13 14:48:15 +0000 Commit: R. Christian McDonald CommitDate: 2026-10-13 14:49:47 +0000 libpfctl: Return max_win and mss of state peers The kernel sends PF_STP_MAX_WIN and PF_STP_MSS for both peers of a state, but struct pfctl_state_peer has no fields for them and libpfctl dropped them. Add the fields and parse the attributes. Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D60544 --- lib/libpfctl/libpfctl.c | 2 ++ lib/libpfctl/libpfctl.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c index 16a6ce8c7702..6d7c45ff993f 100644 --- a/lib/libpfctl/libpfctl.c +++ b/lib/libpfctl/libpfctl.c @@ -1917,6 +1917,8 @@ static const struct snl_attr_parser nla_p_speer[] = { { .type = PF_STP_SEQLO, .off = _OUT(seqlo), .cb = snl_attr_get_uint32 }, { .type = PF_STP_SEQHI, .off = _OUT(seqhi), .cb = snl_attr_get_uint32 }, { .type = PF_STP_SEQDIFF, .off = _OUT(seqdiff), .cb = snl_attr_get_uint32 }, + { .type = PF_STP_MAX_WIN, .off = _OUT(max_win), .cb = snl_attr_get_uint16 }, + { .type = PF_STP_MSS, .off = _OUT(mss), .cb = snl_attr_get_uint16 }, { .type = PF_STP_STATE, .off = _OUT(state), .cb = snl_attr_get_uint8 }, { .type = PF_STP_WSCALE, .off = _OUT(wscale), .cb = snl_attr_get_uint8 }, }; diff --git a/lib/libpfctl/libpfctl.h b/lib/libpfctl/libpfctl.h index 850afd5eac47..0484024bec17 100644 --- a/lib/libpfctl/libpfctl.h +++ b/lib/libpfctl/libpfctl.h @@ -359,6 +359,8 @@ struct pfctl_state_peer { uint32_t seqdiff; uint8_t state; uint8_t wscale; + uint16_t max_win; + uint16_t mss; }; struct pfctl_state_key {