From nobody Tue Oct 01 08:48:39 2024 X-Original-To: usb@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 4XHs6c1V8Rz5XWRY for ; Tue, 01 Oct 2024 08:48:40 +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 4XHs6b34Rfz4js3 for ; Tue, 1 Oct 2024 08:48:39 +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=1727772519; 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=CBCdsLy+yq00vyCOdfb9z1tjWPNH1Xsez2fi2iAsP60=; b=W4VeWOPr6xaGGdUfxVsX/wTigUlQyQ0R4iGJ/KQdqGGx8dtAzkJSxVa2B/D6XuYb9f/5Nl bHFXALcPKWtj+UcGGQPkZI72SP8tE26ChWgxW9wCYnvY2ynaPiUMLN3XPVid8nTidFb/LB Ha9qZA1yhSDXkhO9gTxfFCwL6Gidh+8AiCCHRPHsc1L25BZIu/QQbg225GCPiMBiori5hI s4TCVvNEBWj/fejvPUQyMsHYKZzuUoKgWY11C6WI1CkAYzyu30QWJ/aDxuzrocv4tpBsjk XrVP/r1Nif7luToQvQIlQxuFw+0PwnROmOGTwHt7YjV2DPZekGZj7/JajAUT3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727772519; a=rsa-sha256; cv=none; b=UjHzHie7uhFhgH8uFBXDxnk6miBH8RDhjMohb+VGFfSHtpNO7LuWWVTSibpFmY+H2AwTHT 6+XzXjRTDbGcPpGBq0q9ynUUsetx8SW/1iVGH8QyQvx3w1cpyqT5SZKVFOB5BrkrojGP7Q 0jddjYK5pDOg52oRbGV0VECFvxR6SQnVKecMVY01aMhzBlv7ljP/ZVNNfprmu9xahtd+Le KOx0PV36Pp1zlsELMW4H5Bqu/9frToPMZUNiOKGDPM7HW+7ZmIJR3nstmyw7cegCdr+6WG iZIPY6riBTsLWf+5kgrm6NJ2NJCEAwd0R+4kNwcKIGeZBXCUpZi8QFccZFplow== 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 4XHs6b2NLyzWMZ for ; Tue, 1 Oct 2024 08:48:39 +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 4918mdQl088715 for ; Tue, 1 Oct 2024 08:48:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4918mdPs088714 for usb@FreeBSD.org; Tue, 1 Oct 2024 08:48:39 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: usb@FreeBSD.org Subject: [Bug 281790] Behavior of usbdump(8) counterintuitively under-lists frames by default Date: Tue, 01 Oct 2024 08:48:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mhjacobson@me.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281790 Bug ID: 281790 Summary: Behavior of usbdump(8) counterintuitively under-lists frames by default Product: Base System Version: 13.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: mhjacobson@me.com Running something like this: # usbdump -d 3.2 -v Results in output like this (hexdumps elided for clarity): 04:45:09.159790 usbus3.2 SUBM-ISOC-EP=3D00000081,SPD=3DHIGH,NFR=3D32,SLEN= =3D0,IVAL=3D0 frame[0] READ 3060 bytes frame[1] READ 3060 bytes frame[2] READ 3060 bytes frame[3] READ 3060 bytes frame[4] READ 3060 bytes frame[5] READ 3060 bytes frame[6] READ 3060 bytes frame[7] READ 3060 bytes 04:45:09.159847 usbus3.2 DONE-ISOC-EP=3D00000081,SPD=3DHIGH,NFR=3D32,SLEN=3D92820,IVAL=3D0,ERR=3D0 frame[0] READ 3060 bytes Where are the rest of the frames? 3060 is not equal to 92820. It turns out that this is a result of the default value of `snapshot` in `usbdump.c`. By default, usbdump only captures 192 bytes of each "packet" = from BPF. This means that it misses lots of frames, producing this confusing output. Adding `-s0` to the command restores the missing information, but the defau= lt behavior is very confusing. --=20 You are receiving this mail because: You are the assignee for the bug.=