From owner-freebsd-usb@freebsd.org Tue Jul 25 06:16:36 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 629A6DB7655 for ; Tue, 25 Jul 2017 06:16:36 +0000 (UTC) (envelope-from hselasky@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB94A69DFD for ; Tue, 25 Jul 2017 06:16:35 +0000 (UTC) (envelope-from hselasky@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id g25so48520691lfh.1 for ; Mon, 24 Jul 2017 23:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=fb6pfh72K30Utd3fBVoKU44zL6PEnRvPhv8/IRRy144=; b=s858Ao1PV4FnNLBYLpELetHNkZ4Z4BRBJcVbeOgTebE3szON6rahqXC+HCGMBfH7b5 gRA42O4NMwXT7EYtjI5uV9A5dN+LVqiJvIDFPYdLQ4g2WWbo56FCyAs6NGU6NLyctyqP Wn8uUqW9VqAjyhyuvfXcU1cG1+jI/ZLBkrMx9P/g58M5GY26jb7VeFGZlNhxTjwXYOAs qlLcUGzAA/NMFpLbdY37BZfuycSu/mGHCwje8l3w7/i4CWZKA5NTWl15k4L3Hd2iP3B+ YzLaXs8ZO3HxMHhyMBbWS2ektaY9EQ4zVo43WUB2DH99B7KTuJmZ6rfmGLzMISEiIS27 OSjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fb6pfh72K30Utd3fBVoKU44zL6PEnRvPhv8/IRRy144=; b=fFqAjM+AhHJJWIyv8D/s7qyc4M/aZqfbpPzhZZRxDrCQFWEzOe3CqCS4RteBkeoszd oDX/QYGCmC96QdHww9KxkmWa6lDhFqPewuRb2Dh4wnrxKbh3eoKzLehIbY2f+lO1e6/k Czol97fIlrhXUwpk8KnrrOK0KrIQrYZTCtGA9Orw2asl0eoQOEBONCrhillbA7XwQPkM kq/wWe4Gjnwq4CivH0FOxAy4jt0UGt2a7jZTtjjK+XKQYPa6MDQyzd8pkIbnkc5/zILT 5tPahxLJsTiFpK2NxYwnWIQ2RUzSuirBM332NF9k+NuGZPI16zYYmFZbZG1iCb8fVVUN 0zRA== X-Gm-Message-State: AIVw1106sggiPfAY9lYfGX1LUeHpnxIAdHcaLVf6OnxGS0b9/vqxQjUl xa5i2b0JOdU+NVUK X-Received: by 10.25.193.21 with SMTP id r21mr4044079lff.107.1500963392822; Mon, 24 Jul 2017 23:16:32 -0700 (PDT) Received: from hps2016.home.selasky.org ([62.141.129.119]) by smtp.googlemail.com with ESMTPSA id y17sm1349453lja.25.2017.07.24.23.16.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 23:16:32 -0700 (PDT) Subject: Re: GSoC Week 6-8, add usbdump file-format to Wireshark To: Jie Weng , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <5d00793a-6a19-2287-2078-d52abd0b7fe2@gmail.com> Date: Tue, 25 Jul 2017 08:14:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2017 06:16:36 -0000 On 07/25/17 04:36, Jie Weng wrote: > Hi everyone, > > I'm really sorry for the late status updates. > > In the first week I fixed several crashes when opening files in which the > length of some packets is a little longer. It was caused by a wrongly > explicit cast, the cast shorten the proper length it should be. Besides, I > was diving into learning the Epan lib of Wireshark to make ready for > dissection phase. > > In the second week I register the usbdump file format to FreeBSD USB > encapsulation of Wireshark. The built-in dissectors can dissect the urb > part for each packet, but it does nothing about the frames and payloads. > > Last week I was mainly focus on dissecting usbdump packets. I reused a lot > of built-in dissectors. These dissectors cannot be called directly since > the built-in FreeBSD USB dissector didn't offer enough information, so I > added many content to the built-in dissectors to collect necessary > information, the information is also needed for identifying the kind of > each packet and constructing important data structures. Currently I > finished the control transfers dissection, but it's still not 100% > functional. I think this is due to that I'm not classifying each packet > properly. This faultiness also infects the other dissection phases. > > The code is at > https://github.com/jerrywossion/wireshark/tree/usbdump_dissector. I make a > new branch for current work, and I will clean the code and merge it when > dissection phase is completed. > Hi, Thank you for the work you are doing. I hope this project will help diagnose USB problems under FreeBSD more easily. --HPS