From nobody Thu Jan 02 23:28:49 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 4YPNFF56n1z5k6fG for ; Thu, 02 Jan 2025 23:28:49 +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 4YPNFF3qsJz4D7N for ; Thu, 2 Jan 2025 23:28:49 +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=1735860529; 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: in-reply-to:in-reply-to:references:references; bh=uBTUviQMWrK2qfP2IKpglaqLEcKMQnnjOBPYWgn+nAY=; b=q6A7BJvmlOZcQRwx0OTW2ud8xxSlYJc0si/pb0IbHmqtqhlkJJH8QvnGYJrgPQxmy9LlJl INLM96Gf/mOr0YynASPPWr/z3m4AYmkZ+I6v1aSmpkYuLkr7QDp7KDUcj99Sa08+GsIQc+ 3rdf/4QLeek7u4oD3w/LKDAqffHlc2iqxHzDsGxjoCImGDi3YCwVCTViMztjNjANFYWsnB dUd5PvoQKOpk9hu9Lh2ft4/KRH0Adnx0UfdQNSU/A15qtsHD6T7+u9pE0kcsbjw/Tj7mpu r5usH1Pj1/LZ2zReNOuxM7gZGdPkOVzSIPKcn+01VFXd1fKUNF6YblH1zHlq/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735860529; a=rsa-sha256; cv=none; b=WCiJ5jMlf7q/KeRuvERyUsgQw4hYF6WbuteQqTZWkpw0Y2AbtklI1JGSTneDwqVPDTx7tg SRdv2arnG1v6etY+B4NYVcBRGsLkv0VFF+fjR7gHKL8KnCOozcSrPuChtxfVmfJwnzvaZB LNUZHGDy2Crg1QNTQrk92VKNSy1iOMIxTqw+2W45zLTUDel4o/8znmkHfDKE3hIE7BwExY X3z1l0k+LthUe9JLMAX+qDm3xNScwa+K3RYPebhq0A4SoRoa63Rdznl7fjF7Nd9LMoZ8Ir w7nXVS/lfZrteJ2gsFHFPeMIkzvh6WBEsPant8yawrzb1QqqfPYQ8+Lsn+Gzwg== 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 4YPNFF35bqzx2h for ; Thu, 02 Jan 2025 23:28:49 +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 502NSnmQ099437 for ; Thu, 2 Jan 2025 23:28:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 502NSnpP099436 for bugs@FreeBSD.org; Thu, 2 Jan 2025 23:28:49 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 23:28:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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 --- Comment #4 from eborisch+FreeBSD@gmail.com --- Something like: pass out log (user) on eth0 in pf.conf should generate cases. Traffic will need to be from someone other than root to be interesting. I see things like: # tcpdump -er /var/log/pflog [...] 16:48:29.398601 rule 5/0(match) [uid 436469760]: pass out on vtnet0: machine.name.one.23101 > machine.name.two.ssh: Flags [S], seq 3725723442, w= in 65535, options [mss 1460, [|tcp] where that uid should be 1050, and not 436469760. >>> import socket >>> socket.ntohl(436469760) 1050 Most of the other fields are from network code, which frequently lives in t= he bigendian world. UID and PID are local parameters, so the endian mis-match isn't that surprising, if not explicitly documented. --=20 You are receiving this mail because: You are the assignee for the bug.=