Date: Thu, 02 Jan 2025 17:14:50 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283799] tcpdump (14.2+) endian-swaps uid when parsing pflog data Message-ID: <bug-283799-227-y7jebGFpny@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-283799-227@https.bugs.freebsd.org/bugzilla/> References: <bug-283799-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283799 --- Comment #1 from eborisch+FreeBSD@gmail.com --- Just to explicitly show before/after here: - if (hdr->uid !=3D UID_MAX) - ND_PRINT(" [uid %u]", (unsigned)hdr->uid); + if (GET_BE_U_4(hdr->uid) !=3D UID_MAX) + ND_PRINT(" [uid %u]", (unsigned)GET_BE_U_4(hdr->uid)); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283799-227-y7jebGFpny>