From nobody Tue Oct 13 14:50:03 2026 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 4j3y186FSDz6vQl5 for ; Tue, 13 Oct 2026 14:50:04 +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 4j3y180rZfz4FHG for ; Tue, 13 Oct 2026 14:50:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791903004; 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=CCxMofbDdWiQmrMdbjB/xLc4by1KK/OujLqRobGOkuDHoaO3Y7kuyYFVaa/vOErfa7E7zY L4+CW+tnDKc+CYJmQm6rqy07xqNUOby9YZ9o4w4et8f7IvTt3sqKzplgsIE4NwxmZI4S9r qi1Aas2sLERjUcJAPsWFZ5dhhRDH5WrSht5BmxZP6BiEb1yX51jLCIFdlawnm5XWUyy/r/ B7eKbGoHrLw0yhLibtbOWkwgk8WXHfGtozLZAbFQL3e2Np1pC2suHfvWmlBDJihoYZVJmT yF6Rtr49IEHhBAjF+XrfyxQuEAC76HOoW4pKU02njOHrI4s1pjXc/2bfXENrYQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791903004; b=c9RIGaPR1iIBGsnKqBB6quhYynRxX8eaxXeHgQM71Sp4G/vEwfV7HWO5680E/vp7hK57XZ i16KlXhXj7UhDWPXHshHuMf8cFdwAx0wSOgkh2uD3UFHE9MfWP/4vPPWRih6tkQm5oJhzz ncirPTjao52IatTlKXMVmZ4YlmqKS5gv3a3eOumsFpFkSQp5YQTIr09zlZEjmzyEm/NYnB 43742n5yYfgkaKMR7hzziBuXhSR1Qq1lYw6rVkhl+hzFuy4niRnI852r5y7gKqmQ1e/QOD vKMN3IFcQ+0C5P4C9WMo8oBo7K/Q8H5ITcZgkaHWw9qDShZEqlvMIdrQNbjy8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791903004; 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=HYNWxiefIYdZk8KilTcPi8CbSRCqvUwUpQBZ9UqTSqPOANgUJjCeTMseg0QIDi1a/R4s3Z /F2+N18uJ76RMPJVK0CDA24UQeUkOOVisWl8V0ybB+GLrohutaBQ/qExOkCop0bJugB7hk Fxouy2WgKWsvPKiZbyWoZ51xldbyj150Uyd3s3p63/XTgkTyyzZ3pHr7yQzMw29yW5mF1Z bVemfHgfnI6eD1QjzR6Pi5vDsXYso7HEMmSwCZbUu809HBslHRjPTMx0z8O7HARKRCKW4y 6qd39Ly3J1XZTTmcnUv/XBzsjgrME8VEFtJRoLrtRdKhFqYg9vBqhgNFtvaXAw== 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 4j3y1772VVzJVb for ; Tue, 13 Oct 2026 14:50:03 +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-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch 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 {