mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
tcpdump/print-pflog: Print uid with host endianness
PR: 283799 Reported by: Eric A. Borisch <eborisch@gmail.com> Reviewed by: jrm, kp Fixes: 0a7e5f1f02aad2ff5fff1c60f44c6975fd07e1d9 (cherry picked from commit d72f87c0fd1418bdb814594ea8fc76a202f7d5c6)
This commit is contained in:
parent
e6de39be80
commit
9110e31e1d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue