From nobody Thu Jan 02 17:13:10 2025 X-Original-To: bugs@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 4YPCvp30wbz5jSJj for ; Thu, 02 Jan 2025 17:13:10 +0000 (UTC) (envelope-from bugzilla-noreply@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 4YPCvp14gXz4mwq for ; Thu, 2 Jan 2025 17:13:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735837990; 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=zi5fcgFd2/sZ9+XQIlVKeymtgWtFFMog88li2arqvSs=; b=Pvnuw6Jt0gT1GSXslxbyYZwhPMNTvigwhPd4I2ySsD2aHyp++EPvT3tqD/nk1PujJiaxkZ 2evHzz96C7mAytGVuqTnQySSz49mq+KgxsZGRY2P5yUQkVBXJrPHTH+QpOp6mEpRW4W2m/ 5TU1KFIzTXnKI2ZXAsxbKt3Buy1fYD5avteSVzDLSamJpSX6YamDK0GlJa3yoAVRKrmDwQ aD+HXJNE6eJOzFidfHyJPj3ZQyfB5XsOAhk16zkiFyhgCRnTnThvyrcplN+9X6VJcG0KrZ ypranLBuqxrogffDQFk3OKGDxxvydiy6jktTe2g67vG9M18W2QH2nC8SdMlYLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735837990; a=rsa-sha256; cv=none; b=gWJFrcvs/3xC3By3tW/YofCMKk/nEcDurTBlm8Xh0gpCfFRT/pU02ItaFee8nWW9yApRKs ZyD34rNe8Bmr2AoseqrHJozg4v4bmLhzWjpmgCtRD0Wu56R2s0qo/f/m3iCBPT7biY7vt7 HP5tgNRRft9hCOGrI5693UKVtluvx4ucwNii1wpwWpAnyWWNeUm2suqyy1nou2ykhtXeRW Z6TZnbmlpnaYfFNmGYshCzl0EU/5Z2VJ+8ZyjzIBD4oiUFgR5ywanZmzRomwWfxO/fn3Es w+l13oLR7AfUKFawET9o5CsBRJ8cjziVkxU0/YuoKasT/L/C3EZGQUU1T2vjVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4YPCvp0f9wzlt9 for ; Thu, 02 Jan 2025 17:13:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 502HD9P9015550 for ; Thu, 2 Jan 2025 17:13:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 502HD9eJ015549 for bugs@FreeBSD.org; Thu, 2 Jan 2025 17:13:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283799] tcpdump (14.2+) endian-swaps uid when parsing pflog data Date: Thu, 02 Jan 2025 17:13:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eborisch+FreeBSD@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283799 Bug ID: 283799 Summary: tcpdump (14.2+) endian-swaps uid when parsing pflog data Product: Base System Version: 14.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: eborisch+FreeBSD@gmail.com In this change: https://cgit.freebsd.org/src/commit/contrib/tcpdump/print-pflog.c?h=3Drelen= g/14.2&id=3Dec3da16d8bc19ad90f04cc227fc8f409813c44f4 Endian macros were added (apparently in error) here: contrib/tcpdump/print-pflog.c line 122: if (GET_BE_U_4(hdr->uid) !=3D UID_MAX) ND_PRINT(" [uid %u]", (unsigned)GET_BE_U_4(hdr->uid)); which causes the output uids to be treated to an incorrect byte-swap. --=20 You are receiving this mail because: You are the assignee for the bug.=