git: d72f87c0fd14 - main - tcpdump/print-pflog: Print uid with host endianness

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Fri, 03 Jan 2025 17:41:30 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/src/commit/?id=d72f87c0fd1418bdb814594ea8fc76a202f7d5c6

commit d72f87c0fd1418bdb814594ea8fc76a202f7d5c6
Author:     Eric A. Borisch <eborisch+FreeBSD@gmail.com>
AuthorDate: 2025-01-03 00:21:52 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
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);