; Mon, 10 Aug 2026 14:34:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 249db by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 10 Aug 2026 14:34:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Ishan Agrawal From: Kristof Provost Subject: git: 91aa9bf0ae16 - main - libsysdecode : add attribute parsing for PFNL_CMD_GET_LIMIT 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 List-Id: 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: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 91aa9bf0ae169fafe4c5ec8578d28733d2fab85c Auto-Submitted: auto-generated Date: Mon, 10 Aug 2026 14:34:18 +0000 Message-Id: <6a79e16a.249db.74faad19@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=91aa9bf0ae169fafe4c5ec8578d28733d2fab85c commit 91aa9bf0ae169fafe4c5ec8578d28733d2fab85c Author: Ishan Agrawal AuthorDate: 2026-08-08 05:39:48 +0000 Commit: Kristof Provost CommitDate: 2026-08-10 14:33:31 +0000 libsysdecode : add attribute parsing for PFNL_CMD_GET_LIMIT Signed-off-by: Ishan Agrawal Sponsored-by: Google LLC (GSoC 2026) Reviewed by: kp --- lib/libsysdecode/netlink.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/libsysdecode/netlink.c b/lib/libsysdecode/netlink.c index 1d6200980c9e..b8c657b1b4e1 100644 --- a/lib/libsysdecode/netlink.c +++ b/lib/libsysdecode/netlink.c @@ -237,6 +237,12 @@ nl_decode_attrs_raw(FILE *fp, const struct nlattr *nla_head, size_t len, fprintf(fp, "}"); } +static const struct nlattr_decoder nla_d_set_limit[] = { + { .type = PF_LI_INDEX, .attr_name = "index", .cb = nlattr_decode_uint32 }, + { .type = PF_LI_LIMIT, .attr_name = "limit", .cb = nlattr_decode_uint32 }, +}; +NL_DECLARE_ATTR_DECODER(set_limit_decoder, nla_d_set_limit); + static const struct nlattr_decoder nla_d_addr_wrap[] = { { .type = PF_AT_ADDR, .attr_name = "addr", .cb = nlattr_decode_in6_addr }, { .type = PF_AT_MASK, .attr_name = "mask", .cb = nlattr_decode_in6_addr }, @@ -307,6 +313,10 @@ sysdecode_netlink_pf(FILE *fp, const struct genlmsghdr *genl, size_t nlm_len) ((const char *)genl + sizeof(struct genlmsghdr)); switch (cmd) { + case PFNL_CMD_GET_LIMIT: + nl_decode_attrs_raw(fp, nla, nlm_len, + set_limit_decoder.decoders, set_limit_decoder.count); + break; case PFNL_CMD_GET_ADDR: nl_decode_attrs_raw(fp, nla, nlm_len, addr_decoder.decoders, addr_decoder.count);