From owner-freebsd-usb@freebsd.org Tue Jul 25 02:37:03 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 B0274DB1C26 for ; Tue, 25 Jul 2017 02:37:03 +0000 (UTC) (envelope-from jerrywossion@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (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 7A769632EE for ; Tue, 25 Jul 2017 02:37:03 +0000 (UTC) (envelope-from jerrywossion@gmail.com) Received: by mail-it0-x234.google.com with SMTP id v127so44628529itd.0 for ; Mon, 24 Jul 2017 19:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Z4eK+X1qlXGBF7rQO1JiP33rNHsxF/dBgiQEozfh89w=; b=lE9NXmyQENl6jAwZqDqcltM++cozAiYvJdFU5MzTLMICitM0rU6QK2VPrC/e1w1+Qd wzwBbH2t1b8bTLOX1Ha6rsEqHbbXXQ1FhPkjajSnomyrQ4s9BzC6ad6IsfNjpjKouqNa e7qhqZ5m64cT6obdWL8uKq9kkCGC8jq4pMOuwpcCQnwaEMs+6tZgB56eruKEtYQLewUn semQx6hi/23dU8vxEbVRqydinqUR/TA43SkY9yjWRqXYs8ybv5NMcLKItRLBAvzSV6se ZNL1P1816E0RGYMRYDYJ9ohS1oFmadmN7uXngvmhWN7DbR35Fl2Du1mWtJZHlSBYYXRn x/BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Z4eK+X1qlXGBF7rQO1JiP33rNHsxF/dBgiQEozfh89w=; b=Q0zT/ZKqFtGQ2IKN2D/nZqkqkz6a5jozQoFHfAGd32boWkESmi0AHq2vRHtRhdCayw aoSlPOkKPu1hFRDsGwfehuiLnEzQmHstKLiz/g5nzkOkFlQjWPvq97GSbef15u1totpj 1KCOBeYWM/oyx5THxst4VMguf03v1IokzGcG3DRk8oF5W7fMZOzfGjONRS4C/f6Lwp8c mMZ+DZy9uiWC4g0pRgyIWHcExd8anwc0WDD6tILnNsjtLg4udrVokFiESkMluaNXjgKi GkUtnF5DYtbZju/+QGE/sRJVLhtP2dG6fYt43Uz8bWzOtNKSWEEGQWC0215fnqA5y/3M HcNQ== X-Gm-Message-State: AIVw1113X3FfM8pjsXNuOoCpd1jJvStK+omSKy48mDtfaxOAqE8tuhm5 vxos5ME8RdCiTj8G1712L2wRcO4F3moA X-Received: by 10.36.184.196 with SMTP id m187mr9400758ite.18.1500950222682; Mon, 24 Jul 2017 19:37:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.164 with HTTP; Mon, 24 Jul 2017 19:36:40 -0700 (PDT) From: Jie Weng Date: Tue, 25 Jul 2017 10:36:40 +0800 Message-ID: Subject: GSoC Week 6-8, add usbdump file-format to Wireshark To: freebsd-usb@freebsd.org Cc: Hans Petter Selasky Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 02:37:03 -0000 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. Thanks, Jie Weng