From nobody Fri Jan 03 17:41:30 2025 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 4YPrV263mfz5kFH2; Fri, 03 Jan 2025 17:41:30 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YPrV25V92z4qfK; Fri, 3 Jan 2025 17:41:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735926090; 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=gt6Ky/Lmcgb5LETYKrc4JYgIdRFD+fusRHYCdqrIlEE=; b=TtS78kGAs60uablAcyAOhrv+LN/UxlCrw+A/h14xqGGgsu7r1sm8tZ9pR1fb+61PkXYYQa uiV2f3sM3K2Rb/7Wkda5hcAaFsOxti3vZGmS93xrceMhBzgaBe91awuDVzM6dGLKmAHNXc uyBu3HLdSwU0XabW5u4a+/2vYqkRzbllDCqe68H532ySWG0RBsJppOs85g8Fc/MK1Kflcp /I3+dgn3eqoBsf1rrbi+eGfHeDXXJEcLx5KEYRlCR6kvcZq6tTETMjwTrYMIiWLKt/uce1 0xcr8q6r59pnjXfH7apdxUQOWAkee3b5Ms8wUUYWVeQq7nUd+8PX0SjGJMxi2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735926090; 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=gt6Ky/Lmcgb5LETYKrc4JYgIdRFD+fusRHYCdqrIlEE=; b=kq2n9gyV5wcnhQ97CoBHDfd6xrmUy9zk+HU0AX/lmUhMePqW4ccMMm3uHG81/I2C37EmyH g8Jp+GCht3xwJugojY9enjJaERXnpBMTkyD1mLMg2iH7ovF7UeIDH4DvTfmUpdCrU3cZrP TYUBajTsBfTGD7gduahyiyLU3swRHE3/TS+pOagBKMJNPC7AGnaUtFakHdGLVQmdAJS8Zx 42uX0YsikVeORgmM/R2SvADMkX4GDFf9XUjiDO9JqBJiR3AHxK9m0eHOJW1z9ssqt+REZn bhphhBnxw5WVeng7UF5SrwfzF3fEWqffwuXYOXPRn0pCLV7B/RcO+b0IhHRVsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735926090; a=rsa-sha256; cv=none; b=fuY8x83hBamyHsNpFauTI0iAN14aAU6f+EtYsqQzN5mRhcDc+kd23MoCspNvXrhmo59oCm 4erwfI7L9UrHtuV0EAyaMFJG7ghdVGVle9/tkpJwR0X4yucQ8kw5p4ZQRhHLjBGPqGAQmP ehh0w7bfDGyGuAL1L+f71YNx0Y1yZTOXcFZ2zrVzIm/e8zU2tYJx5QqI84Y4n0r7U2DqwM 3mvZ3fODakY10n+tXD049rAWiafAzCTvuVDkopB615+VMJ1xAuVkLz4br4NPOmvErTZJ/N pcG+evqIf9Pk9OA64uPQp6+4j/geql7XF5PaNz6iwW4IybaExdsZAWodr3cA7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4YPrV2507Cz2DX; Fri, 03 Jan 2025 17:41:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 503HfU9G077900; Fri, 3 Jan 2025 17:41:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 503HfUw4077897; Fri, 3 Jan 2025 17:41:30 GMT (envelope-from git) Date: Fri, 3 Jan 2025 17:41:30 GMT Message-Id: <202501031741.503HfUw4077897@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Joseph Mingrone Subject: git: d72f87c0fd14 - main - tcpdump/print-pflog: Print uid with host endianness 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d72f87c0fd1418bdb814594ea8fc76a202f7d5c6 Auto-Submitted: auto-generated The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/src/commit/?id=d72f87c0fd1418bdb814594ea8fc76a202f7d5c6 commit d72f87c0fd1418bdb814594ea8fc76a202f7d5c6 Author: Eric A. Borisch AuthorDate: 2025-01-03 00:21:52 +0000 Commit: Joseph Mingrone CommitDate: 2025-01-03 17:37:45 +0000 tcpdump/print-pflog: Print uid with host endianness PR: 283799 Reported by: eborisch@gmail.com Reviewed by: jrm, kp Fixes: 0a7e5f1f02aad2ff5fff1c60f44c6975fd07e1d9 --- contrib/tcpdump/print-pflog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/tcpdump/print-pflog.c b/contrib/tcpdump/print-pflog.c index e54d33ac13bb..71bf01f07555 100644 --- a/contrib/tcpdump/print-pflog.c +++ b/contrib/tcpdump/print-pflog.c @@ -119,8 +119,8 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) ND_PRINT("%s", tok2str(pf_reasons, "unkn(%u)", GET_U_1(hdr->reason))); - if (GET_BE_U_4(hdr->uid) != UID_MAX) - ND_PRINT(" [uid %u]", (unsigned)GET_BE_U_4(hdr->uid)); + if (GET_HE_U_4(hdr->uid) != UID_MAX) + ND_PRINT(" [uid %u]", GET_HE_U_4(hdr->uid)); if (ridentifier != 0) ND_PRINT(" [ridentifier %u]", ridentifier);