1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-23 16:01:42 +00:00

tcpdump/print-pflog: Print uid with host endianness

PR:		283799
Reported by:	eborisch@gmail.com
Reviewed by:	jrm, kp
Fixes:		0a7e5f1f02
This commit is contained in:
Eric A. Borisch 2025-01-02 20:21:52 -04:00 committed by Joseph Mingrone
parent b714eacb79
commit d72f87c0fd
No known key found for this signature in database
GPG Key ID: 36A40C83B0D6EF9E

View File

@ -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);